Apache-macos10.8.3 installation php5.4 always displays Version 5.3 of the system

Source: Internet
Author: User
Tags intl tidy
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
  1. Replace/usr/local/php5 with the PHP5.4 installation directory.
  2. Not all the above files have to be copied. Please map the files according to your installation situation
  3. 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.