View Full Version : Problem in virtual hosting, server says that i dont have permission to that site..
deepblue_tiano
March 2nd, 2008, 10:03 PM
Hello everyone i having trouble with my virtual host..My virtual host is okay coz the server is restarting fine without errors and the site name that i declare in virtual host is accessible in the browser, the only problem is i get an permission denied, you dont have permission to this site..please help..
twistedtwig
March 3rd, 2008, 05:52 AM
have you checked the file permissions of that folder?
deepblue_tiano
March 3rd, 2008, 06:00 AM
Yes, I already try this sudo chown -R "the user" "location of my folder" but nothing happens
deepblue_tiano
March 3rd, 2008, 06:10 AM
And also when i try to extract my project in /var/www/ i cant see my folder in localhost.. and when i try localhost/myprojectname again i dont have permission to view the page..
rickyjones
March 3rd, 2008, 10:09 AM
And also when i try to extract my project in /var/www/ i cant see my folder in localhost.. and when i try localhost/myprojectname again i dont have permission to view the page..
Try the following command replacing the path/folder with your path/folder:
sudo chmod -R www-data:www-data /var/www/website
-Richard
deepblue_tiano
March 3rd, 2008, 08:56 PM
Try the following command replacing the path/folder with your path/folder:
sudo chmod -R www-data:www-data /var/www/website
-Richard
What is the function of this code? sorry i am new to ubuntu..
rickyjones
March 4th, 2008, 09:55 AM
What is the function of this code? sorry i am new to ubuntu..
My apologies. The code is actually supposed to be:
chown -R www-data:www-data /var/www/folder
What this code does is change the ownership information on that folder to the apache user.
-Richard
deepblue_tiano
March 4th, 2008, 09:26 PM
My apologies. The code is actually supposed to be:
chown -R www-data:www-data /var/www/folder
What this code does is change the ownership information on that folder to the apache user.
-Richard
Okay I will try this when i get home.. Is it also okay if i did it even my site folder is not in /va/www/ directory? because i did it in virtual host my location of my folder is in another drive...
rickyjones
March 4th, 2008, 09:43 PM
Okay I will try this when i get home.. Is it also okay if i did it even my site folder is not in /va/www/ directory? because i did it in virtual host my location of my folder is in another drive...
Just change the command to point to your correct folder. The path that I used is just an example.
-Richard
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.