localhost access suddenly not working!

Gnome 2.2 SUSE 10.3 Apache/2.2.4

How to fix this problem?

I’m getting Access forbidden Error 403 for

and haven’t modified any configuration files!!!

http://localhost/server-info still working!

the only process I used was Yast HTTP Server to check configuration but did not save (Abort)


Look at /var/log/apache2/error_log as to the cause of the issue.

Thanks Chrysantine,

I founded many entry like this one
[Tue Jul 29 12:18:31 2008] [notice] caught SIGTERM, shutting down
[Tue Jul 29 12:19:56 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Jul 29 12:19:56 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Tue Jul 29 12:19:58 2008] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.6 with Suhosin-Patch configured – resuming normal operations

and few like this one!

[Thu Jul 24 17:41:33 2008] [error] [client] Directory index forbidden by Options directive: /srv/www/htdocs/

If it is the root cause? it doesn’t tell me what directive I have to change and what process changed it.

I’m new to linux I’m wondering if it not related to user access rights level or group? (default)


This is normal. Directory indexing is off by default in OpenSUSE, but if you put an index.html in the directory it will be served.

By default, Apache listen to index pages in SUSE.
try put some index.php or index.html and you will see the page.
Other wise will give forbidden error while accessing dir.

!index.html in /srv/www/htdocs is installed by default by apache RPM.

In the meantime I used Yast “HTTP server” and “DNS Server” to check settings instead of using “DNS and host name” GUI. and now it’s getting worst, I don’t even have access to http://localhost/server-info
that was working before.

Try create index.php with the following code:

echo phpinfo();

And save it as info.php in your www directory, and run it like:


Hope this helps.

just to clarfied the situation

Errro 403 for

all from /srv/www/htdocs index.htm or .php

but work find with


/home/username/public_html/ index.htm or .php

I done it after installing appache and it was running find.
but now it only works from http://localhost/username/info.php not anymore from http://localhost/info.php

Founded the cause and solution

Using Yast2 “HTTP Server” GUI it created a new filename yast2_vhosts.conf in /etc/apache2/vhosts.d/
this overwrite default installation settings by enabling a virtual host virtual host not working???

So I’m back to default settings.