Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.