Apache2/PHP: "Access Forbidden

Hi there!

I installed apache2 & PHP5 along with it’s dependencies. I followed this guideline https://en.opensuse.org/SDB:LAMP_setup until the part where it says to “Test the apache2 installation”. It says it should have installed /srv/www/htdocs/index.html but I don’t see index.html in that directory.

/srv/www/htdocs # ll
total 8
drwxr-xr-x 2 root root 4096 Oct 26 12:23 gif
-rw-r--r-- 1 root root 2356 Sep 25  2014 info2html.css

When I visit “localhost” I get

Access forbidden!
           You don't have permission to access the requested directory.     There is either no index document or the directory is read-protected.      
  If you think this is a server error, please contact the webmaster.  
  Error 403

systemctl status apache2.service 
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: active (running) since Thu 2015-04-23 11:30:25 EAT; 16min ago
 Main PID: 17459 (httpd2-prefork)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/apache2.service
           ├─17459 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─17504 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─17505 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─17506 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─17507 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─17508 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           └─32360 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start

Please help

Lack of the file is kinda meaningless, it only has “It works!” in it.

If you want it, install the package **​apache2-example-pages

**The reason you’re getting the access denied if because there is no index.html or index.php. The server itself works fine.