LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2018, 08:17 AM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
copy library file


I just try to install apache to centos server , when start apache , it pops the below error .

I just would like to ask if the file "libphp5.so" is missing , could I copy it from another machine which have the samiliar version of php ?


Code:
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
 
Old 11-27-2018, 08:21 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,098

Rep: Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143
libphp5 is available, but that version is not compatible with the apache.

Last edited by pan64; 11-27-2018 at 08:23 AM.
 
Old 11-27-2018, 08:21 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,085

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
If you want to risk borking your system, yeah sure, why not?

Why not just post what's on line 185 so we can see what it's on about?
 
Old 11-27-2018, 08:22 AM   #4
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,810

Rep: Reputation: 1281Reputation: 1281Reputation: 1281Reputation: 1281Reputation: 1281Reputation: 1281Reputation: 1281Reputation: 1281Reputation: 1281
Is php installed?
 
Old 11-27-2018, 10:42 AM   #5
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 599

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by catiewong View Post
I just try to install apache to centos server , when start apache , it pops the below error .

I just would like to ask if the file "libphp5.so" is missing , could I copy it from another machine which have the samiliar version of php ?


Code:
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
So, after installing apache, did you edit the httpd.conf file and added "libphp5.so" in it? What if you remove it, does apache start?

Does the application you have need php?
If php is needed, you need to install with yum command.
 
Old 11-27-2018, 12:02 PM   #6
Otp
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: 0
Nicee..
 
Old 11-27-2018, 07:09 PM   #7
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
If you want to risk borking your system, yeah sure, why not?

Why not just post what's on line 185 so we can see what it's on about?
line 185

Code:
LoadModule php5_module        modules/libphp5.so
 
Old 11-27-2018, 07:10 PM   #8
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dc.901 View Post
So, after installing apache, did you edit the httpd.conf file and added "libphp5.so" in it? What if you remove it, does apache start?

Does the application you have need php?
If php is needed, you need to install with yum command.
if remove this line , the apache still can be started , but when run php program , it pops error , therefore , this line must be inlcuded in httpd.conf to start
 
Old 11-27-2018, 07:25 PM   #9
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 599

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by catiewong View Post
if remove this line , the apache still can be started , but when run php program , it pops error , therefore , this line must be inlcuded in httpd.conf to start
You cannot just insert this line in httpd.conf, you have to install php module for apache (using yum).
So, first, remove that line from httpd.conf, then install php module for apache; I think it is called mod_php (search with yum)
Code:
yum search mod_php
Then install it.
After install with yum, it will insert the line in httpd.conf; so after yum command, restart httpd service and test your application.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linuxzoo tutoria,I am working tutorial 1 and i am stuck on question 7. Copy the file yearfile to yearfile2. copy the file yearfile to yearf rstelle Linux - Newbie 3 09-01-2017 07:58 PM
Want to change how pasted files are named "(copy)," "(another copy)," "(3rd copy)" L a r r y Linux - Desktop 3 08-24-2013 03:39 PM
Can we convert 32 bit library file to 64 bit library file? Tinyspark Linux - Newbie 2 06-05-2012 06:21 PM
copy library file to /lib sunhui Linux - Software 1 05-21-2007 04:43 AM
Compiling library files into another library file. knobby67 Programming 3 04-10-2007 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration