Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 404 even when I changed the Document root

Status
Not open for further replies.

erikacruz

IS-IT--Management
Oct 16, 2005
4
US
I am usin a Linux (Ubuntu) and the Apache I got it from XAMPP which installs Apache, MySQL and PHP at the same time.

I have been trying to set up an ERP SW named Arias in my Apache webserver but it doesn't find my DocumentRoot


First
1.- I placed my Arias installation in
/var/
Then I changed the Apache Configuration file in /opt/lampp/etc/httpd.conf
2. - DocumentRoot /var/3. - Then make sure there was an index.php on the DirectoryIndex
DirectoryIndex index.php index.html index.html.var

However, anytime I tried to check my website ... I receive a message saying

"Not Found

The requested URL /arias was not found on this server.
Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.8 PHP/5.0.4 DAV/2 mod_perl/2.0.1 Perl/v5.8.7 Server at localhost Port 80"

Please if anyone could help me I will appreciate it. I don't understand why it says not found if I already changed the DocumentRoot....

Thanks so much...
 
Hi

erikacruz said:
I don't understand why it says not found if I already changed the DocumentRoot...
Do you restarted the server after editing the configurations ?

I do not know Ubuntu, but are you sure that /opt/lampp/etc/httpd.conf is the actual configuration file and not just a sample ?

In the error log file there is nothing more about the error ?

Feherke.
 
Hi feherke, thanks for your reply.
Yes I restarted (/opt/lampp/lampp stop) and yes it is the conf file. Yesterday it was working I just got a authorization error and then today I got a different think :( ... I even shut down my laptop.
Where can I check the error log?

Thanks so much for your reply
 
Hi

erikacruz said:
Where can I check the error log?
See the [tt]ErrorLog[/tt] setting in the httpd.conf file.

I do not know what is that lampp thing, but could it hide some of the Apache error messages on start ? Check the configuration from command line :
Code:
httpd -t
And what is the [tt]UseCanonicalName[/tt]'s value ? Is the same error if you try [ignore][/ignore][red]/[/red] ( with a trailing slash ) ?

Feherke.
 
What's the UseCanonicalName? I found something like in the conf file but is Off. The first time I found the error I found the CanonicalName value was Off /var/ and I deleted /var/ thinking I put it in a mistake and leave just Off. Is that ok?

Thanks for your help.
 
Hi

Yes, [tt]Off[/tt] should be ok. No other idea for now. Just some basic debuging :
[ul]
[li]Have an index.html too ? If so, [ignore][/ignore] is working ?[/li]
[li]If [tt]Options Indexes[/tt] is set, then without an index.php file you get a file list ?[/li]
[li]The permissions for /var/ directory and it's files are ok ?[/li]
[li]Is any virtual host set on that server ?[/li]
[li]The [tt]ServerName[/tt] and [tt]Listen[/tt] settings are also correct ?[/li]
[/ul]
Maybe paste here the above mentioned options.

Feherke.
 
It only has an index.php
Options Indexes FollowSymLinks ExecCGI Includes
chmod 777 / vara/No Virtual host
ServerName localhost
Listen 80

It's very confusing :( I got the same error the first time and suddenly the next day it started working... at least I could see the webpage not this error.... and suddenly it stop working again....
 
Hi

Hmm... localhost as [tt]ServerName[/tt], abit strange choice. By the way, if you use IP in the URL, stil no change ?

At this point the only thing rest is to set [tt]LogLevel[/tt] to debug then make some requests to the server with a basic communication tool like [tt]telnet[/tt] or [tt]netcat[/tt] and see the logs.

Some additional questions should be :
[ul]
[li]The error is the same if the request is made from the same machine where Apache run and when it cames from another machine in the network ?[/li]
[li]Is any strange thing written about localhost in the /etc/hosts too ?[/li]
[/ul]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top