hello my server was running successful but I uninstall it and again I have installed it In YAST(Opensuse) as apache 2
the out put of it is now:
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 localhost Fri Aug 5 21:19:30 2011 Apache/2.2.10 (Linux/SUSE)
I changed the default-server.conf in /etc/apache2 and it wasn't successful and it was the reason that I uninstall and install it again
I changed override None to override All and cause it wasn't successful I decide to delete changes by uninstall and installiation
what can I do? I tried chmod 777 /srv/www/htdocs/myfile
to set permission
is telling me with output: Itworks!
Now then what is the problem?
linux-llby:~ # cd /srv/www/htdocs/didebansnort/ linux-llby:/srv/www/htdocs/didebansnort # ls -lha total 64K drwxr-xr-x 10 root root 4.0K Aug 6 19:22 . drwxrwxrwx 8 root root 4.0K Aug 6 19:21 .. drwxr-xr-x 2 root root 4.0K Aug 6 19:22 SQL -rwxr--r-- 1 root root 15K Aug 6 19:22 adminuser.php drwxr-xr-x 9 root root 4.0K Aug 6 19:22 classes drwxr-xr-x 3 root root 4.0K Aug 6 19:22 config drwxr-xr-x 3 root root 4.0K Aug 6 19:21 core drwxr-xr-x 3 root root 4.0K Aug 6 19:22 docs drwxr-xr-x 3 root root 4.0K Aug 6 19:21 images -rwxr--r-- 1 root root 3.1K Aug 6 19:21 index.php -rwxr--r-- 1 root root 2.0K Aug 6 19:22 login.php drwxr-xr-x 10 root root 4.0K Aug 6 19:22 src drwxr-xr-x 9 root root 4.0K Aug 6 19:22 theme
content of httpd.conf:
Include /etc/apache2/ssl-global.conf # forbid access to the entire filesystem by default <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> # use .htaccess files for overriding, AccessFileName .htaccess # and never show them <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> # List of resources to look for when the client requests a directory DirectoryIndex index.html index.html.var index.php
I changed the DirectoryIndex and insert the index.php too