Tag Info

Hot answers tagged

13

Normally, you do not need any server just to view raw HTML files, even if they reference other files, CSS and JavaScript. Simply double click on any file and it will open with the default browser of your machine from the local file system. However you may need to check if your static content has no absolute references to other files or other resources ...


10

Since your site is static, one solution is to use CloudFlare, because it can still serve cached pages if your site goes down (with proper configuration). It will be transparent if there is an issue. And keep a copy of your site on your laptop or on a memory stick if you can't use your laptop. If all goes wrong, you will still able to finish your ...


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 ...


7

There is a relatively new technology called Server Name Indication (SNI) that allows SSL certificates to be associated with a virtual host rather than with the server's IP address. Here is a digicert article that explains it very well. Your host may not have SNI support installed yet. It requires newer versions of both Apache and OpenSSL. Web hosting ...


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.


6

If you don't trust him/her, create an FTP account in the domain that is being worked on for the uploads. Dev person should be able to create the database structure on their own machine and then dump it and give you a SQL file to recreate it on your server.


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 ...


5

If the website is HTML and CSS only, You don't need a host. Just throw it on the USB stick that that you're going to use for the redundant WAMP environment and run it from whatever machine you plug it in to. If you're worried about losing the USB stick, the web host would be a suitable backup.


5

You can simply open the internet page locally and display it in your browser. If you even want to show a different domain name, you can use XAMPP to open a local webserver. Host your website there and point the domain to your localhost on your maschine by appending the following line to your hosts file on your system: 127.0.0.1 ...


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

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

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

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 ...


4

If you are using Git for version control of your site... (not to judge... but you kinda should be if it's an important project!) You can host your entire website on Github's "project pages". (aka Github Pages) It's really simple to just git push your site code there. Basically you push to a branch called gh-pages and your site will automatically publish, ...


4

You could host the static content using Amazon S3. See http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html for a guide as to how. Basically you sign up for an AWS account, upload your website into S3, and can then access it via a url like <bucket-name>.s3-website-<AWS-region>.amazonaws.com. You can also create a custom domain for ...


3

This article will tell you what nameservers to use.


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

They typically are. They're usually subdirectories within the root web directory or one level below that. Some hosts even let you choose where in your directory structure to put them.


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 ...


3

So many overly-complicated answers. The website is HTML and CSS only (no DB), and currently resides on my shared hosting account. You do not need Apache You do not need XAMP (or similar) You do not need cloudflare, dropbox or any other 3rd-party service. (github? for a presentation? please.) All you need is a portable storage device. USB key, external ...


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 ...



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