LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2012, 10:19 AM   #1
josephw47
LQ Newbie
 
Registered: Sep 2010
Location: North Carolina
Distribution: centOS 5, RHEL 5/6, SLES10/11, VMWare, Backtrack 4, Ubuntu 10.04
Posts: 20

Rep: Reputation: 0
Question Joomla 2.5.6 permission issues on apache 2


Hey... I've asked around on this one and am coming up short on answers for this

I have default permissions set on /var/www/ (root:root 755)
I install Joomla 2.5.6

Initially I cant delete the 'installation' folder through the web page, I went around this by deleting the folder manually. I went to install a few plugins/templates (k2, widgetkit, etc) and it refused to install the template with the error "unable to move file".
I change permissions to apache:apache 775 recursively to everything in and inclusive of /var/www/html/. From my experience this is not normal, so I already know something isn't right. This works but joomla eventually crashes to the point that I have to completely blow everything out in /var/www/html/ and reinstall joomla from scratch, repeating the aforementioned hacks.

Centos 5.8
Joomla 2.5.6
Apache 2.2.3
PHP 5.3.3
MYSQL 5.0.95

I'm almost 100% sure the permissions are hosed... Anyone have any idea why the permissions are fouled up?
 
Old 07-09-2012, 01:57 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,072

Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
Hi,

Quote:
I'm almost 100% sure the permissions are hosed... Anyone have any idea why the permissions are fouled up?
The permissions look ok, but since it's a Centos box, I guess it's SELinux that is the problem.

Regards
 
Old 07-10-2012, 04:03 PM   #3
josephw47
LQ Newbie
 
Registered: Sep 2010
Location: North Carolina
Distribution: centOS 5, RHEL 5/6, SLES10/11, VMWare, Backtrack 4, Ubuntu 10.04
Posts: 20

Original Poster
Rep: Reputation: 0
Bathory....

Unfortunately that's the first thing I tried. I've been poking around and found several other problems as well, so I'm guessing SELinux hosed something even though I disabled it at install, or the install was generally hosed from the get go. Considering that at one point the symlinks in the kde menu didn't work (any of them), suddenly decided to work after a reboot, then vnc gook a giant dump in my lap while i was in the middle of compiling something, I'm guessing that the whole OS was hosed from day one . I'll repost after I reload it all and it's back working... I hope :/
 
Old 07-10-2012, 04:10 PM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Assuming that it's SELinux which is causing the permissions problems. First reset the security contexts using restorecon
Code:
/sbin/restorecon -R -v /var/www/
Then disable Selinux, by changing /etc/selinux/config or by temporarily disabling selinux by
Code:
setenforce 0
 
Old 07-20-2012, 08:57 PM   #5
josephw47
LQ Newbie
 
Registered: Sep 2010
Location: North Carolina
Distribution: centOS 5, RHEL 5/6, SLES10/11, VMWare, Backtrack 4, Ubuntu 10.04
Posts: 20

Original Poster
Rep: Reputation: 0
OS reload was a waste of time....It's actually worse now. SELinux is hard disabled, firewall is outright off, tried normal permissions, tried apache:apache 777 recursive, tried the restorecon trick that rch mentioned... looked left... looked right... went straBRICKWALL!!!!....

I honestly don't know what I did wrong at this point..... Why do I now find myself pining for the days of writing web pages in vi and notepad....? :P

Last edited by josephw47; 07-20-2012 at 09:07 PM. Reason: cant type... :D
 
Old 07-20-2012, 11:55 PM   #6
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Output of /var/log/httpd/error_log?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
joomla on apache charanjaitu Linux - Server 6 03-01-2011 01:44 PM
Unexplainable permission issues with Apache rtaft Linux - Software 2 01-28-2007 05:44 PM
Install Joomla -- Newbie Issues sillybdunlap Linux - Newbie 6 08-25-2006 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:18 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