Tag Info

Hot answers tagged

8

Probably the biggest thing to check if is you have keys on the fields you are querying on. Having the right keys and fields will make your queries considerably faster. You can determine if your keys are being used by running the query with EXPLAIN in front of it, such as EXPLAIN SELECT * FROM table WHERE id = 2; You can add EXPLAIN on queries in the slow ...


6

Shared hosting means that there are other sites on the same server you are on sharing things like bandwidth and resources. Dedicated hosting means that you are the only one on the server and all the resources belong to you. Usually dedicated hosting is more expensive, but it provides better performance if you need it.


5

If you have shell access, you can just use your shell account to SFTP to the new server and upload it directly from one host to the other. It may still take a while, but it will be much faster and won't take up any of your bandwidth. Also, any decent web host should be willing to perform this type of transfer for you for free. 60GB isn't a lot of data in ...


5

You can configure Mercurial to run a web server using the hg serve command. A list of runtime options on hg serve are available here. Once you have your web server set up, hg clone http://servername:port will pull a copy of the server's resources, and hg push from that directory will update the server. To force the server to update itself upon receiving a ...


5

Shared hosting Pros: Cheap Fully managed by hosting company Cons You are at mercy of other sites poor performance You are in a restricted environment Dedicated hosting Pros: You have full control of the machine You can set up the web server app whatever you want The performance only depends on your apps in the server Cons You have to ...


4

When you sign up for Godaddy shared hosting they usually send you and email afterwards with the server's IP. Once you have the IP address go to the site that is hosting your domain name and change the Host (A)Record within the DNS setting to reflect the new IP address. It will take an hour or an hour and a half based upon what the TTL is set to.


4

There's no magical way to turn a website migration into a 3-step process, but with planning and some clever scripting, you can make things go a lot more smoothly. First things first, is this a static site we're talking about or a dynamic site? There's a reason why most sites these days are dynamic. It's just impractical to manage and maintain a large site ...


4

Just as example, because it's the system I'm in at the moment, when adding a new domain to a Pair hosting account you're given the following options Dedicated IP Domain Hosting -- The domain name will have its own unique IP Address Shared IP Domain Hosting -- The domain name will share an IP address with another domain on your account Parked Domain ...


4

Presumably you just need to block HTTP access (return an HTTP status code of 403 - Forbidden) to these folders, if stored in the document root? In your document root .htaccess file: # Block HTTP access to certain folders RewriteRule ^classes/.* - [F] RewriteRule ^templates/.* - [F] (...and build flexibility into your framework to allow your framework to ...


3

Most shared hosting providers have a control panel. Most control panels allow you to change file permissions through some sort of file manager. Windows uses a different way of doing permissions to Unix servers, so you may need to give read/write permission to a user called IUSR_machinename for Wordpress to work properly. For Plesk it's: Websites & ...


3

WordPress can, per se, under some conditions be slow. But if plain PHP work good on the same host, you have to think about DB-backend of WordPress (MySQL) also - host may be fast, only database slow. Anyway, some not oberbloated Blog-engines, which you can try DB-backend Serendipity (s9y) MaxSite CMS Dotclear (require PHP 5.3.*) PivotX Flat-files ...


3

Yes, once you publish content to a shared webhost your content is available to anyone who knows where to look. Fortunately you have a couple of options to develop your site privately. You can develop your site locally on your own computer using WAMP or XAMPP . These are great tools because you can develop your site conveniently on your own computer in a ...


3

I personally use Git for web development, and have adopted a method similar to this with our development server. I used Joe Maller's Web-Focused Git Workflow as a model, and it's been fairly successful. Joe's approach uses an intermediary "hub" repository that's been set up as a "bare" repository (git --bare init), because it's very tricky pushing into a ...


3

If you do not recognize the username after the tilde, this is most likely an instance of a phisher exploiting a hosting provider's lax mod_userdir configuration (in conjunction with a reverse lookup of domains hosted on the server) - contact your hosting provider for assistance. (You may want to mention mod_userdir by name - phishers have been using this ...


3

Is there any reason to complicate your life using AppFog/PhpFog spendng 29$ per month, when you could simply buy a 45$ per year reliable cPanel hosting service with MySQL (among millions of providers) that will suffice to most of your web application needs for a long time?! And in the case you have a lot of traffic you simply need to send an email to the ...


3

Just to clarify... 404 crawl errors are not necessarily a bad thing if the content genuinely does not exist. It is what 404's are for. You will not get penalised for having legitimate 404's. However, in this case it looks as if these are typos in the source URL, or people/search engines are linking to content that has moved. In this case you are potentially ...


3

The better solution is to code so that there is no security risk from someone requesting these files. Remember that since PHP is interpreted at the server-side then you can code your files to return an empty document or redirect elsewhere when requested. This is what Wordpress does. Try asking for any of the files you are not supposed to and what the ...


3

All of the following code will be placed in a file called .htaccess in your root web directory and mod_rewrite enabled on your server. Changing the domain is easy to do. The following snippet should do it: Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?old\.com$ [NC] RewriteRule ^(.*)$ http://www.new.com/$1 [R=301,L] To move ...


2

This is a tough one, and I'd like to see how others deal with the problem. But we've done such email migrations before from DreamHost to Gmail, and this was done through Gmail's own email migration tool. It is reasonably fast, and works quite well, but obviously it only works if you're using Gmail hosted. Another tool you could use is imapsync. This is ...


2

For more informations about this you can create a file with phpinfo(); in it, this does list every module loaded by php with details. You can search the GD section to see if the GD library is active and if it's the case you will find more informations about it.


2

A pageview count alone isn't too useful for this question, for the various contextual reasons John already brought up. But if we just go with it anyway consider that 50,000 views a month is only ~1700 per day. If a shared account can't handle that, yes it's a hint the current hosting might suck(that's the technical term). But it says almost nothing about ...


2

The quick answer is that there are companies that monitor websites, pindom being the most well know. for a single site many offer free services. I use http://mon.itor.us theyb have a really nice user interface. If your website is unresponsive there are many other more likely causes than connectivity issues of your hosting provider. Ideally you should see if ...


2

Hostgator's policy on IPs is: Due to the global shortage of IPv4 addresses, although there is no limit on the number you may have, we are now required to request justification for dedicated IP address requests. With the exception of the Business hosting package, the only acceptable justification for a dedicated IP address on any account type ...


2

Kloxo/HyperVM might be worth a look - open source/free and released under AGPL-3.0 license. I can't say whether or not development is keeping pace with bugs at this point - you should know, if you use this software, that there were some issues with security (which turned into some huge headaches for hosting providers) a couple years back. Edit: Though the ...


2

Your site shouldn't immediately drop connections when the maximum number of concurrent connections has been reached, unless your host has something in place specifically to handle this case (see below). In Apache, the MaxClients directive is used to set the maximum number of concurrent connections. Anything beyond this limit will go into a queue to be ...


2

CPanel has an export and import websites. That's probably the easiest and fastest way to do it. When I got a dedicated server with Hostgator they helped migrate my websites from Rackspace to it. I don't know if they offer that fr VPS accounts but if they do that would be even better. if those two options aren't possible all you need to do is move your files ...


2

Firstly, using the cpanel backup feature isn't a very good idea in this situation because there are only options to backup and restore entire cpanel accounts rather than a specific domain. A prerequisite would be to set up the domain on the VPS. If memory serves correctly, this should be using WHM. The interface for this can get slightly confusing but the ...


2

Sign up for a Google Webmaster Tools account and submit an XML sitemap for your .com. Then you need to tell Google you have moved your site using the address move tool.


2

How many is a bunch of sites and how have you set up daemon mode? Initial impression would be that if hosting multiple sites that you would be worse off using embedded mode because you can't individually control number of processes for each. Thus if a site only really needed a single mutithread processes, you balloon out memory usage by number of child ...


2

There are two common ways to prevent directory listing under Apache: Create or edit the file called .htaccess in your web server's root directory and add the line: Options -Indexes Put blank index.html files in each subdirectory. The first option is probably the best, unless you're distributing open source projects (like WordPress), when it's a good ...



Only top voted, non community-wiki answers of a minimum length are eligible