Hot answers tagged

14

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


11

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


6

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.


6

OS is winxp sp3. The Apache Friends download page for XAMPP states that Windows XP is no longer supported by the application. However, an alternative link is given for this OS. Windows XP or 2003 are not supported. You can download a compatible version of XAMPP for these platforms here. It seems that the latest version of XAMPP that is compatible ...


5

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


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

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

When you type an URL in a browser, unless you specify the port explicitly, the browser will assume port 80 (unless the path is HTTPS, in which case port 443 is assumed). Technically any URL can be rewritten to include :80 port directive. It is just redundant. On the server side there can only be one service listening at port 80. So, no, you can not have ...


4

Looks like a corrupted installation of phpmyadmin. Make sure your permissions are set correctly. Also consider reinstalling phpmyadmin using the latest stable build.


4

Activate mod_rewrite, and put this in a .htaccess file or a <Directory> directive: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_URI} !^apps/ RewriteRule (.*) apps/$1 What it does: The first three lines check if the requested URI refers to an actually existing file, ...


4

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


3

I found out my own answer to my question.... The problem was related to the base_url settings. I correct this problem by switching from: http://localhost/project_folder to http://my_ip/project_folder This was the reason why only resources were loading on my machine and not other machines. Thanks everyone who viewed my question and those who tried to ...


3

XAMPP is "Apache, MySQL, PHP (+PHPMyAdmin), Perl" and is just a software bundle containing the basic programs for running a webserver stack. You could find this helpful: http://mina.apache.org/vysper/ which is also by the Apache group. It's an entirely different service (not included in XAMPP) but there's no reason you can't run it on the same server.


3

Are you using SSL? Have you tried to Fix this error by updating the configuration to force close the SSL service? If you edit the file httpd.conf at /xampp/Apache/conf and comment out the line: #LoadModule ssl_module modules/mod_ssl.so Try to Start Apache again and see if it worked. The source of this issue can occasionally be another service listening ...


3

Sadly it is not possible since this is controlled by the browsers. By default browsers will connect to port 80 and anything else needs to be added in the URL. There is 3 solutions I can think of what could work but ultimately it will not work for public users since some coding on the clients machines would need to be changed. Host File Method You could ...


2

First; add port to your ServerName < VirtualHost *:80 > DocumentRoot C:/server/htdocs ServerName localhost:80 < /VirtualHost > Second Chance, give a different name to ServerName and add the ServerName to the windows hosts file, this is located in “C:\windows\system32\drivers\etc\hosts”. Open the file in Notepad and simply add; ...


2

It may have to do with how XAMP is configured with your local server and how routing is setup to send web traffic to your server. It's actually common to see bots scanning your server for vulnerabilities and common scripts such as phpMyAdmin. On linux I would add them to hosts.deny, in apache you can ban them with your .htaccess file. If the attacks are ...


2

You shouldn't have a problem using your working directory as the web root folder since apache2 and subversion are two separate services running each can use the same folder. I normally use rsync to copy from the trunk to web root. Check your permissions and if there's an htaccess file in the WD


2

I realise this is an old post, but others with the same problem might find the solution useful. After spending ages with various fixes to session.inc.php I finally had a eureka moment and thought to check the PHP session save directory was correct and writeable. Setting NTFS permissions to Everyone on the folder has fixed it for me.. Doh.


2

From the Wikipedia entry for .localhost (TLD): As a top-level domain, the name has traditionally been defined statically in host DNS implementations with address records (A and AAAA) pointing to the same loopback addresses. However, as you have found, it would appear that it's just Chrome and later versions of Opera (possibly the WebKit browsers, so ...


2

Keeping two databases in sync is known as "replication". MySQL supports database replication. In fact one of their use cases seems to match yours pretty well: Long-distance data distribution - if a branch office would like to work with a copy of your main data, you can use replication to create a local copy of the data for their use without requiring ...


1

You mount the drive as you would any other. This will usually make the files on it available via /Volumes/Something/ on your local file system. You can then specify that location as a DocumentRoot or Alias in your Apache configuration. Alternatively, you can create a symlink to it from somewhere under your existing DocumentRoot (assuming you enable ...


1

... however they lose the page that they were going to. I'm not sure what you mean by this - they shouldn't "lose" anything? However, the URL in the address bar will not be updated - if that is what you are implying? An Apache Alias converts a URL to a server-side filesystem path (usually to allow access to files located outside of the document root) - ...


1

Where is your website directory on your local filesystem? My guess is that you've probably put the files in the wrong place. When you request <host>/xampp/ (a URL) it's actually serving the files from the /xampp/htdocs directory on the local filesystem (this is the default location at least). So, in order to successfully request ...


1

WordPress only prompts for FTP credentials when the web server process does not have the essential file and folder permissions. You're need to make sure that your folders are using 750, or 755 and your files 644 or 640. SOURCE All directories should be 755 or 750. All files should be 644 or 640. If your folders and files are set correctly ...


1

If you have an internet connection with static IP address, you can do it. First you have to create an entry in the Apache's VirtualHost on xampp with the domain name, and port. Here is a tutorial on creating the vhost entry. http://httpd.apache.org/docs/2.0/vhosts/examples.html You can then add the a record with the value of the static public IP in ...


1

Hm... try to put this code into your host file. <Directory "/path/to/your/dir"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all Require all granted </Directory>


1

I think you can write them onto a notepad document, save as foo.html or something along those lines, and open, it won't rely upon the internet (admittedly I'm not sure how to fit the CSS in there I've never made to much html, or any CSS so you can try not sure how it will turn out).


1

And, last but not least, make screenprints of all the webpages you were planning to display. Hey, it's worked for me. Put them in Power Point or just organized by name/sequence. Murphy's Law has no boundaries!



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