Apache and www folder

In order to learn PHP, I installed apache, php and phpmyadmin.
I have very well arranged the configuration files.
Just one question.
All my files (e.g. index.html, index.php) are in /srv/http.
However, I would like these files to be in my /home/wwww.
How do I fix this problem?
I tried to change the httpd configuration file by replacing /srv/http with /home/bruno/www/, and restart httpd, but it doesn’t work. I get an apache error when I run localhost/index.html (an example).
Can you help me?



(tu a deja demandé 36 fois et j’ai 36 fois) …
Tu sais ou sont les logs d’erreurs :wink:

find /srv/http in /etc/httpd/conf/httpd.conf
After read apache logs :wink:

edit: 403 = don’t have permission to access

I know papajoke, I replaced:
DocumentRoot “/srv/http” to “/home/bruno/www/” and <Directory “/srv/http”> to “home/bruno/www”.
I restarted httpd.service, but I get error 403
In the logs, I have this:
access to /index.html denied (filesystem path ‘/home/bruno/www’) because search permissions are missing on a component of the path

Okay, it’s solved.
As papajoke was saying, I solved the problem by looking at the logs.
It was a rights issue.
I had put the 777 rights in the www directory (anyway, it’s only for testing purposes), but I still had the 403 error.
So I had to change the rights in the /home/bruno/ folder to make it work.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.