LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP5 doesn't compile on OpenSUSE 10.2 (https://www.linuxquestions.org/questions/linux-software-2/php5-doesnt-compile-on-opensuse-10-2-a-531990/)

rushenas 02-24-2007 09:29 AM

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.

bathory 02-24-2007 05:04 PM

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.

rushenas 02-24-2007 05:18 PM

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?

bathory 02-26-2007 02:35 AM

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.

stormfire 05-07-2007 07:22 AM

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,


All times are GMT -5. The time now is 08:52 PM.