Linux installation apache cannot generate libphp5.so version is: httpd-2.2.13.tar.gz has tried the compilation Command: 1. /configure -- prefix =/usr/local/apache2 -- enable-module = so -- enable-MoD-shared linux installation apache cannot generate libphp5.so
Version is: httpd-2.2.13.tar.gz
Compiled command:
1
./Configure -- prefix =/usr/local/apache2 -- enable-module = so -- enable-MoD-shared = most \
> -- Enable-so -- enable-rewrite -- enable-vhost-alias -- enable-ssl -- enable-authn-dbm \
> -- Enable-static-support -- enable-static-htpasswd -- enable-static-logresolve \
> -- Enable-static-rotatelogs -- enable-static-htdbm \
-- With-ssl =/usr/include/openssl -- with-mysql =/usr/local/mysql
2
./Configure -- prefix =/usr/local/apache2 -- enable-module = so -- enable-MoD-shared = all \
> -- Enable-so -- enable-rewrite -- enable-vhost-alias -- enable-ssl -- enable-authn-dbm \
> -- Enable-static-support -- enable-static-htpasswd -- enable-static-logresolve \
> -- Enable-static-rotatelogs -- enable-static-htdbm \
-- With-ssl =/usr/include/openssl -- with-mysql =/usr/local/mysql
3
./Configure -- prefix =/usr/local/apache2 -- enable-module = so
Results cannot be generated.
------ Solution --------------------
./Execute make after configure
------ Solution --------------------
Fainted, because you compiled it using the php source file.
Httpd is compiled by Apache. of course, it does not contain libphp5.so.
You have to go to the php website to download the original php file compilation before libphp5.so is available.
------ Solution --------------------
Make install
------ Solution --------------------
The directory you specified during httpd compilation is/usr/local/apache2, but the apache Directory specified during php compilation is/usr/local/apache.
Of course the program cannot find libphp5.so
Repeat the installation steps in the PHP Manual.
------ Solution --------------------
I usually use find as follows:
Find/-name 'libphp5. so'
I can't see where your problem is. check the installation steps in the following PHP manual step by step:
1. gzip-d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar-xvf php-NN.tar
5. cd httpd-2_0_NN
6../configure -- enable-so
7. make
8. make install
Now you have Apache 2.0.NN available under/usr/local/apache2,
Configured with loadable module support and the standard MPM prefork.
To test the installation use your normal procedure for starting
The Apache server, e.g .:
/Usr/local/apache2/bin/apachectl start
And stop the server to go on with the configuration for PHP:
/Usr/local/apache2/bin/apachectl stop.
9. cd ../php-NN
10. Now, configure your PHP. This is where you customize your PHP
With various options, like which extensions will be enabled. Do
./Configure -- help for a list of available options. In our example
We'll do a simple configure with Apache 2 and MySQL support. Your
Path to apxs may differ, in fact, the binary may even be named apxs2 on
Your system.
If you decide to change your configure options after installation,
You only need to repeat the last three steps. You only need
Restart apache for the new module to take effect. A recompile
Apache is not needed.
Note that unless told otherwise, 'make install' will also install PEAR,
Various PHP tools such as phpize, install the php cli, and more.
13. Setup your php. ini
Cp php. ini-dist/usr/local/lib/php. ini
You may edit your. ini file to set PHP options. If you prefer having
Php. ini in another location, use -- with-config-file-path =/some/path in
Step 10.
If you instead choose php. ini-recommended, be certain to read the list
Of changes within, as they affect how PHP behaves.
14. Edit your httpd. conf to load the PHP module. The path on the right hand
Side of the LoadModule statement must point to the path of the PHP
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.