The operation is to install with homebrew. However, libphp5.so files are not known when apache is integrated with the system. The libphp. so file of the system is loaded. Httpd. conf configuration file LoadModulephp5_modulelibexecapache2libphp5.so system...
The operation is to install with homebrew.
However, libphp5.so files are not known when apache is integrated with the system. The libphp. so file of the system is loaded.
Httpd. conf configuration file
LoadModule php5_module libexec/apache2/libphp5.so
System display:
The libphp5.so file installed by homebrew is unknown. The system cannot be found.
Is there any detailed configuration scheme just learned, that is, php5.4 cannot be loaded.
Reply content:
The operation is to install with homebrew.
However, libphp5.so files are not known when apache is integrated with the system. The libphp. so file of the system is loaded.
Httpd. conf configuration file
LoadModule php5_module libexec/apache2/libphp5.so
System display:
The libphp5.so file installed by homebrew is unknown. The system cannot be found.
Is there any detailed configuration scheme just learned, that is, php5.4 cannot be loaded.
Cp/usr/local/php5/lib/php. ini in/etc/php. inicp/usr/local/php5/bin/php in/usr/bin/php # If you have installed phar # cp/usr/local/php5/bin/phar in/usr/ bin/pharcp/usr/local/php5/bin/phar. phar in/usr/bin/phar. pharcp/usr/local/php5/php in/usr/bin/phpcp/usr/local/php5/php-config in/usr/bin/php-configcp/usr/local/ php5/bin/phpize in/usr/bin/phpize
Remarks
- Replace/usr/local/php5 with the PHP5.4 installation directory.
- Not all the above files have to be copied. Please map the files according to your installation situation
- Some files may not be written in the correct path. Please find them in the directory where PHP is installed based on your installation status.
When installing php with homebrew, the shell script is
brew install php54 --with-debug --with-fpm --with-intl --with-tidy
It seems that the libphp5.so file will not be compiled during the installation of -- with-fpm.
brew install php54 --with-debug --with-homebrew-openssl --with-imap --with-intl --with-tidy
In this way, you can load the file.
LoadModule php5_module/usr/local/opt/php54/libexec/apache2/libphp5.so