LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2008, 09:19 AM   #1
cwc64
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Permission Problem Troubleshooting


I need suggestions on how to troubleshoot a permissions problem with an Apache server. The following are some details to my issue:

I'm in process of building a LAMP server that also includes an Oracle client. The intent is to put together a "test" server that is identicle to an existing web server. The server is running RHN AS 4.0 Linux, Apache 2.0.52(rpm), MySQL 3.23.58, PHP 4.4.4 (source), Oracle
9.0.4. The intention is to update the PHP to 5.2.5 for testing prior to updating the production server.

Currently, I get the following errors when checking the status and starting apachectl respectively:

apachectl status

ERROR at dump.c:188: Connection refused

apachectl start

Syntax error on line 192 of

/etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/httpd/modules/libphp4.so into server: libclntsh.so.9.0: cannot open shared object file: Permission denied

Apache starts if line 192 is commented out.

Permissions on libphp4 are:
-rwxr-xr-x 1 root root 7586237 Feb 13 14:28

libphp4.so

Permissions on libclntsh.so.9.0 are:
-rwxrwxr-x 1 oracle dba 11527745 Mar 12 16:24

libclntsh.so.9.0

Are there other files that I should check the permissions on?

Any help would be greatly appreciated. Thank you in advance.

Charles
 
Old 03-20-2008, 04:18 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Check the whole path to the library. Also, i'd try to su to the apache user and try to access the library to see if it works.
 
Old 03-20-2008, 11:21 PM   #3
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
PATH variable has to set in that shell for all libraries.
set or export or add it in the .profile before running the exe.

Fedora Development

Last edited by prad77; 04-17-2008 at 03:20 AM.
 
Old 03-21-2008, 03:38 AM   #4
cwc64
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I was able to get Apache to run without error. Here's what did it:

vi /etc/selinux/config
and disabled selinux.

The production server that is running now also has the "selinux" disabled. So I think I'm good to go.

Answers to your suggestions...

"Check the whole path to the library. Also, i'd try to su to the apache user and try to access the library to see if it works."

The permissions were ok the entire path. Running apache from apache did not work. Looks like I may still have a problem. If I try to run apache as apache I get this:

su apache
This account is currently not available.

There is an "apache" account. It is also in the httpd.conf file. Any suggestions?

"PATH variable has to set in that shell for all libraries.
set or export or add it in the .profile before running the exe."

Sorry, I'm not sure exactly how to do that. How do I access the .profile?

Thank you.

Last edited by cwc64; 03-21-2008 at 03:49 AM.
 
Old 03-23-2008, 06:26 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by cwc64 View Post
Here's what did it: (..) disabled selinux.
Instead look for SELinux warnings in syslog and audit.log, run them through audit2allow and add to your local policy. If unsure post some different warning messages between BB code tags here.
 
  


Reply

Tags
apache, libraries, modules, oracle, permissions, php, selinux



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
Troubleshooting problem Bhambra Linux - Software 1 04-18-2007 11:39 PM
troubleshooting the sound problem in Solaris 10 fakie_flip Solaris / OpenSolaris 1 09-06-2006 11:14 AM
permission problem - "You don't have permission to access" radone Linux - General 3 07-24-2006 10:23 AM
need help troubleshooting eth1 problem tapanga Linux - Networking 3 04-15-2004 11:34 AM
Troubleshooting NIS+ - login problem discostu Linux - Networking 2 11-21-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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