LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2007, 09:29 AM   #1
rushenas
Member
 
Registered: May 2005
Posts: 34

Rep: Reputation: 15
PHP5 doesn't compile on OpenSUSE 10.2


It's now one week that I am get confused with installing PHP5.2.x, Apache 2, and openSuse 10.2 (I also tried to install PHP 5.1.x, without any success).
The problem is about make install PHP. I can install Apache2 from source successfully. Here is the commands which I use for doing it:

./configure --prefix=/usr/local/apache2 --enable-so

Apache successfully installed, and I can telnet localhost on port 80, and see contents of my webserver folder via browser.

I also can configure and make PHP. Here is list of my commands:

./configure \
--with-oci8-instant-client \
--prefix=usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs \
--enable-sigchild –with-config-file-path=/usr/local/apache2/conf

(Please note that I already installed Oracle Instant Clinet RPMs successfully).
But after running make install command, I got this error:

Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

I tryed it several times, with several versions of PHP, even I try to install openSuse from the scratch (!), re partition my hard disk, and still I have problems. The problem is that I can't find libphp5.so in /usr/local/apache2/modules. And I can't find it anywhere else in my computer, also can't find anywhere on the net to download it.
If somebody know where is the problem and can help me, I beg him/her to tell me. I am completely exhausted about this.
 
Old 02-24-2007, 05:04 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Are you sure you're running make install as root?
Quote:
And I can't find it anywhere else in my computer, also can't find anywhere on the net to download it.
If your build was successful, then libphp5.so should be under /php-source/libs and also in /php-source/.libs, so you can copy it to the apache modules dir.
 
Old 02-24-2007, 05:18 PM   #3
rushenas
Member
 
Registered: May 2005
Posts: 34

Original Poster
Rep: Reputation: 15
Of course I am logged in as root. And the main problem is the libphp5.so doesn't create by PHP itself.
I know that under windows we can install PHP in two ways, ISAPI and CGI. Does it the same in the Linux?
 
Old 02-26-2007, 02:35 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
And the main problem is the libphp5.so doesn't create by PHP itself.
If running make produced no errors, then you should have a libphp5.so under the libs and/or .libs subdirectory in the directory you're compiling php. You can also try the recent version of php-5.2.1 to see if it works.
Quote:
I know that under windows we can install PHP in two ways, ISAPI and CGI. Does it the same in the Linux?
You can build php as an isapi or cgi module, but if you're going to use apache as webserver the first is not applicable and the second is not a good solution since it's very slow compared to the dso.
 
Old 05-07-2007, 07:22 AM   #5
stormfire
LQ Newbie
 
Registered: May 2007
Posts: 9

Rep: Reputation: 0
for open suse I'd use L.A.M.P which installs mysql and php, the php version is 5.2 and you don't need to compile it, it is on the dvd,
 
  


Reply



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
php5 compile woes: undefined function imagettftext BCarey Slackware 5 05-18-2007 11:42 PM
FC 6 - php5 idgeitman Fedora 1 01-08-2007 10:43 PM
help: cannot load php5 module, compile from source parv Linux - Networking 2 02-18-2006 12:27 PM
cannot load php5 module in apache 2, compile from source parv Linux - Software 6 02-17-2006 04:29 PM
Can't compile PHP5 on Sarge 3.1 karlson Debian 2 10-22-2005 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 AM.

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
Open Source Consulting | Domain Registration