• 0

lampp / xampp


Question

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

3 answers to this question

Recommended Posts

  • 0

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.