Author |
|
catiewong
Joined: 26 Nov 2018 Posts: 3 Location: hong kong
|
Posted: Mon 26 Nov '18 11:43 Post subject: Start apache libphp5.so error |
|
|
I have installed httpd-2.4.12 on centos 7.5 with tar.gz , the php 5.6.9 is also installed by tar.gz , after installed the httpd , it pops the following error when startup , would suggest what would be the possible reason of this error ? thanks
httpd: Syntax error on line 185 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: XpmLibraryVersion |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Tue 27 Nov '18 9:58 Post subject: |
|
|
Try installing libXpm-devel:
# sudo yum install libXpm-devel |
|
Back to top |
|
catiewong
Joined: 26 Nov 2018 Posts: 3 Location: hong kong
|
Posted: Tue 27 Nov '18 11:53 Post subject: |
|
|
Jan-E wrote: | Try installing libXpm-devel:
# sudo yum install libXpm-devel |
Installed , fail to run
# yum install libXpm-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.nethub.com.hk
* epel: fedora.cs.nctu.edu.tw
* extras: centos.nethub.com.hk
* updates: centos.nethub.com.hk
Package libXpm-devel-3.5.12-1.el7.x86_64 already installed and latest version |
|
Back to top |
|
catiewong
Joined: 26 Nov 2018 Posts: 3 Location: hong kong
|
Posted: Tue 27 Nov '18 13:21 Post subject: |
|
|
Just would like to ask , if I find any library files are missing , is it ok to copy it from another machines ( with the similar version ) ? |
|
Back to top |
|
maba
Joined: 05 Feb 2012 Posts: 64 Location: Germany, Heilbronn
|
Posted: Thu 29 Nov '18 9:03 Post subject: |
|
|
#1 I would propose not to install an outdated version via tar.gz. The only reason I could see for the tar.gz install is if you want a newer version than what CentOS provides
#2 MUST MATCH: the Apache API version and the libphp version must be compatible (use the same Apache module API version)
#3 Strong proposal:
- remove the manual installation
- replace with
"sudo yum install httpd" and
"sudo yum install php"
If you want a newer PHP version:
https://tecadmin.net/install-php-7-on-centos/ |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|