Richard Grant Posted October 2, 2014 Share Posted October 2, 2014 I am on Ubuntu using lampp. i am trying to move my root directory (htdocs) to an alias for my usb my alias folder is set up like: sudo mkdir /pny sudo mount /dev/sdb1 /pny my /pny alias is set up at: cd ~/pny so naturally i go to my httpd.conf file in /opt/lamp/etc/httpd.conf and modify: DocumentRoot "/pny/" <Directory "/pny/"> when trying to navigating to my root directory on my site 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. I need to be able to have my htdocs on my usb. Link to comment Share on other sites More sharing options...
0 Max Norris Posted October 2, 2014 Share Posted October 2, 2014 If I recall, Apache on Ubuntu needs to have www-data group permissions set for wherever it's serving from -- didn't mention it so check your permissions first. Link to comment Share on other sites More sharing options...
0 Richard Grant Posted October 3, 2014 Author Share Posted October 3, 2014 If I recall, Apache on Ubuntu needs to have www-data group permissions set for wherever it's serving from -- didn't mention it so check your permissions first. My permissions on the files are 777 using: sudo chmod -R 777 /pny Link to comment Share on other sites More sharing options...
0 simplezz Posted October 3, 2014 Share Posted October 3, 2014 <Directory "/pny/">AllowOverride All</Document> Link to comment Share on other sites More sharing options...
Question
Richard Grant
I am on Ubuntu using lampp.
i am trying to move my root directory (htdocs) to an alias for my usb
my alias folder is set up like:
my /pny alias is set up at:
so naturally i go to my httpd.conf file in /opt/lamp/etc/httpd.conf and modify:
when trying to navigating to my root directory on my site 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.
I need to be able to have my htdocs on my usb.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts