Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 am installing apache, mysql, and php. I have looked several places for the error that I receive when I try and install php, which is
cannot access `/usr/local/apache2/modules/libphp5.so'
when I run make install. I am running 64 bit Gentoo.
I looked around the internet, and most of the responses to my problem are in a different language, which doesn't help much. I found one that talked about copying certain files from /usr/lib64 to /usr/lib, but I was missing one of those files. Here are my ./configure commanders for both apache and php.
ls -l /usr/local/apache2/modules/
total 13488
-rw-r--r-- 1 root root 8454 Nov 19 09:11 httpd.exp
-rw-r--r-- 1 root root 13771816 Nov 19 09:50 libphp5.a
-rw-r--r-- 1 root root 828 Nov 19 09:50 libphp5.la
Yeah, I am installing as root. I have run both find and locate to see if the libphp5.so was installed somewhere else, but no dice. What should create it, and what would cause it not to be created
Is there a special order needed to emerge php and apache? I did it on my previous server (2.4, forgot the emerge-order) and now, on a new machine, amd64, I tried to emerge php and apache. After some fiddling and walking around I seem to be missing libphp5.so.
sumatra # ls -l /usr/local/apache2/modules/
ls: cannot access /usr/local/apache2/modules/: No such file or directory
Actually when i restart apache I get
sumatra # /etc/init.d/apache2 restart
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 5 of /etc/apache2/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache2/extramodules/libphp5.so into server: /usr/lib/apache2/extramodules/libphp5.so: cannot open shared object file: No such file or directory
It puzzles me that this is called a syntax error?
My 70_mod_php_conf:
<IfDefine PHP5>
# Load the module first
<IfModule !sapi_apache2.c>
LoadModule php5_module extramodules/libphp5.so
</IfModule>
[...]
If anybody knows what I possibly did wrong (I only emerged php, apache, mysql, ssh, libgd, no fancy other commands) please give me some advice. That would be highly appreciated.
_______
I am not that handy in Linux but I found my way on the old server. Now many small things changed I must have lost it:-) It worked so well that after 300 days, I only reset the toko to add a disk and now we're a good 613 days up. But the box is too slow for my sql/php tasks on 333 Mhz. So I decided to get me a new 1500 Mhz AMD.
Is the libphp5.so file on your computer anywhere? If so, you should be able to copy it over to the target directory, or change your apache config file to point to the correct location.
Is the libphp5.so file on your computer anywhere? If so, you should be able to copy it over to the target directory, or change your apache config file to point to the correct location.
I'll try and find it, good point. I forgot to tell I use Gentoo Linux and most of the time it just works after emerging and /etc/init.d/restart xxx. That the nice thing. That's why I'm so confused now.
Hi guys. Googling “cannot access `/usr/lib/apache2/modules/libphp5.so': No such file or directory” shows up this outdated post. To spear ppl crawling through the web I'll resurrect the subject.
The point is that apache is missing PHP5 module. In the case of debian it is "apt-get install libapache2-mod-php". Once the module is installed compiling works fine.
Hi guys. Googling “cannot access `/usr/lib/apache2/modules/libphp5.so': No such file or directory” shows up this outdated post. To spear ppl crawling through the web I'll resurrect the subject.
The point is that apache is missing PHP5 module. In the case of debian it is "apt-get install libapache2-mod-php". Once the module is installed compiling works fine.
Yup I googled the same and now I am here.
But there is no better place to find the answer. I get that my libphp5.so is missing from my apache/modules. I am on CentOS 5.7 with Apache 2.2, trying to compile PHP. but my "sudo make install" fails with the same error:
Code:
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /setups/php-5.3.8/libs'
Warning! dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: cannot access `/usr/local/apache/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
I am expecting libphp5.so to generate automatically as I am installing it from source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.