Hi all experts.
I installed apache 2.0.52 and php4.3.9 on my fedora linux box.
I configured apache first and was able to open the defalt apache welcome page by accessing the server using IP address.
And then I created a php info page in the apache default directory to see if php works. php worked no problem.
The problem occurred when I added a domain to virtual hosting section.
Now I have only one domain to host, but I am going to host more so I created a web directory in user's home directory and
in http.conf file I added the virtual host settings like below
NameVirtualHost ip of my server
<VirtaulHost ipaddress>
ServerAdmin webmaster@domain.com
DocumentRoot /home/user1/www
ServerName domain.com
ServerAlias
www.domain.com DirectoryIndex index.html index.php
</VirtualHost>
I have tried to access a file in the user1's web directory by
www.domain.com/file1.php. But still got the permission error.
I have set all directory and file permissions in the user1's directory 777 in order to test it. But no hope.
Please help me out with this problem.. Thanks advance.
Start Free Trial