Today in the Linux 14.04 build LAPM environment, after installing APACHE2, then to install PHP5, the following error will appear:
[Email protected]:/home/adu# apt-get Install php5 libapache2-mod-php5
Reading Package Lists ... Done
......
Apache2_invoke:enable module PHP5
Action ' configtest ' failed.
The Apache error log may has more information.
Apache2_reload:your configuration is broken. Not restarting Apache 2
Setting up PHP5 (5.5.9+dfsg-1ubuntu4.11) ...
At this point to restart Apache, the following error will appear:
[Email protected]:/home/adu#/etc/init.d/apache2 Restart
* Restarting Web server apache2 [Fail]
* The Apache2 configtest failed.
Output of config test was:
Apache2:syntax Error on line of/etc/apache2/apache2.conf:syntax error on line 1 OF/ETC/APACHE2/MODS-ENABLED/PHP5.L Oad:cannot load/usr/lib/apache2/modules/libphp5.so into server:/usr/lib/apache2/modules/libphp5.so:symbol Xmloutputbuffergetsize, version libxml2_2.9.0 not defined in file libxml2.so.2 with link time reference
Action ' Configtest 'failed.
The Apache error log May has more information.
Think it is the libxml2.so.2 version of the wrong, run to upgrade, but also caused other errors. After an afternoon of tossing and looking for information, the final discovery is due to the confusion of Linux version. You can do this by executing the following command:
[Email protected]:/usr/local/lib# rm/usr/local/lib/libxml2.so*
A number of other errors have occurred during this period, such as
[Email protected]:/usr/local/lib# sudo apt-get dist-upgrade
Reading Package Lists ... Done
Building Dependency Tree
Reading state information ... Done
Calculating upgrade ... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
156 not fully installed or removed.
After this operation, 0 B of additional disk space would be used.
Want to continue? [y/n] Y
Setting up Shared-mime-info (1.2-0UBUNTU3) ...
Update-mime-database.real:/usr/local/lib/libxml2.so.2:no version information available (required by Update-mime-database.real)
Warning:program compiled against Libxml 209 using older 207
can also be resolved by the above operation.
Apache + PHP + MySQL installation error