tags:

views:

261

answers:

2

I have picked up some possible answers to my problem here, but none have so far worked.

I have installed XAMPP but get the dreaded HTTP 404 error on both IE and Firefox when asking for 'http://localhost/'. I work with Dreamweaver but cannot get the testing server (XAMPP) to work, although I can connect to the linux/apache remote server.

Skype has been uninstalled. Therefore XAMPP is running on port 80 by itself.

XAMPP says Apache and Mysql have 'started'.

Is there someone that could please help me?

A: 

Thanks Colin and nc3b,

In \xampp\apache\logs\error.log is this message:

httpd.exe: Syntax error on line 35 of C:/Program Files (x86)/xampp/apache/conf/httpd.conf: ServerRoot must be a valid directory

Line 35 says: ServerRoot "/xampp/apache"

Typed this C:\Program Files\xampp\apache into browswer which pointed me to apache_installservice which loaded (url c:/windows/system32/cmd.exe) saying apache isn't installed, went through a couple of yes/no questions on the dos type browser page - this resulted in the system saying several files could not be installed (chmod reasons).

When installing XAMPP, instead of going with the default drive of c:/ I instructed that XAMPP be installed in c:/programfiles - Duhhhh maybe this is my problem?

Will try reinstalling directly on the c:/ drive.

Thanks for pointing me in the direction..... will let you know the outcome....

A: 

Just to let you know (in case others have the same headache)

I uninstalled and deleted XAMPP files - visited to sourceforge.net and downloaded via 'Installer [MD5]' - this didn't work, so I repeated (this was very different from the original install as the default was the program file directory (it wouldn't let me install to c:/).

Now via http:// localhosts/ I am now able to view http:// localhost/xampp/.

This tells me:

MySQL database ACTIVATED
PHP ACTIVATED
HTTPS (SSL) ACTIVATED
Common Gateway Interface (CGI) ACTIVATED
Server Side Includes (SSI) ACTIVATED SMTP Service DEACTIVATED
FTP Service ACTIVATED

In the XAMPP control panel, it shows that Apache and FileZilla is running (highlighted in green) but I can't seem to get MySql 'Running' - have clicked the 'settings...' button > then clicked the check box next to MySql > then ok button - but when I go back into 'settings...' the box is again unchecked.

Again, please, any ideas? Thanks

BTW - Apache error log is now clear.
Just to let you know - a simple but good reboot did the trick.