LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-04-2005, 11:19 PM   #1
anothernixconvert
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Rep: Reputation: 0
Apache folder permissions


So I've recently installed phpBB2 onto my Mandriva box. I'm having a slight problem with folder permissions though.

I have Apache2, all the web files are at

/var/www/

edited the commonhttpd.conf file to include an alias for

/var/www/phpBB2/ (which is where I put my phpBB2 folder)

I kept getting a 403 (Forbidden) error while trying to access the phpBB2 folder. So, I also added in the following lines

<Directory /var/www/phpBB2>
AllowOverride All
Options -Indexes
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>

which allows me to do pretty much everything I want to do with the exception of uploading avatars or letting the program create any other new files in a subfolder of the phpBB2 folder. Is there any way to make a recursive listing I can add to the commonhttpd.conf file that will allow read/write permissions to the whole phpBB2 folder?

The folder permissions themselves seem to be fine with

drwxr-xr-x

I think it might have to do with being in the /var/www folder. Should I maybe just think of relocating the whole web directory to another spot?

Thanks!
-Paul
 
Old 12-04-2005, 11:47 PM   #2
anothernixconvert
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Oh, and I noticed that the phpBB2 folder was still owned and grouped by root. I changed both of these to apache as the www folder is.

I thought for a minute that I might have it had it in the wrong place, but tried putting it in

/var/www/html/phpBB2

instead of

/var/www/phpBB2

without success.
 
Old 12-04-2005, 11:55 PM   #3
anothernixconvert
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Alright... so, it turns out that I'm an idiot.

So, for anybody who did the same thing I did, here are the steps:

With MySQL server, php, and apache2 installed, put the phpBB2 directory in
/var/www/phpBB2

Now, edit /etc/httpd/conf/commonhttpd.conf

Add an alias in the form of

Alias /phpBB2/ /var/www/phpBB2/

Also, add in:

<Directory /var/www/phpBB2>
AllowOverride All
Options -Indexes MultiViews
Order allow,deny #no spaces!
Allow from all
</Directory>

Now, save this.

cd to /var/www and chmod -R apache phpBB2, also chgrp -R apache phpBB2.

Type in

/etc/init.d/httpd restart

to restart apache. Should work. This is all probably going to have to be done as root.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Folder permissions Canam97 Mandriva 7 03-10-2005 11:01 PM
folder permissions Godsmacker777 Linux - Newbie 4 12-02-2004 10:26 PM
Folder permissions help Seventh Linux - Newbie 2 04-22-2004 05:56 PM
Folder Permissions DB03 Linux - Newbie 5 04-18-2004 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration