• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Installation of Advantage PHP Extensions fails

RR71

New Pleskian
---------------------------------------------------------------
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
I'm using a Strato Server with a installed openSUSE 11.1 and Plesk Panel 10.1.1.

PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
I tried to install the "Advantage PHP Extension" (Adv. Database Server) to read data from the ADS using PHP.
But the installer ask for the directory, where the PHP source code is installed.
"which php5" returns /usr/bin/php5, but this is not the correct dir.

ACTUAL RESULT
Invalid Path.
The path must be where the PHP source code was installed:

EXPECTED RESULT
Correct installation.

ANY ADDITIONAL INFORMATION
Does someone have any idea, where I can find the PHP source code on my system? Or do I need another PHP installation?

Thanks for your help

Rolf
--------------------------------------------------------------
 
where the PHP source code

It is source code but not binary of PHP. Plesk doesn’t ship client’s PHP, it only downloads it from original OS vendor repo and it is quite likely it may be outdated there (especially for older OS). If your OS comes with PHP 5, then Plesk would run PHP 5 for clients. If you need "PHP source code" try to find it on vendor OS repo and install it on your server.
 
Thanks!

I've downloaded the php-package and the installation of the extension returned no error.
The next step "configure" was already successful.
But I can't make the last step "make" and "make install": Command not found.

The gcc is installed and "which gcc" returns /usr/bin/gcc. The make is in the gcc, right? So where is it? I search the complete system, but there is no "make"???
 
This command allow you to see for which package make utility is belongs. So, you should install make package.
 
Next problem:
At first I'll show you the Installations Notes:
#################
To install the Advantage PHP Extension for Linux, follow these steps:

1] Untar and Unzip the PHP source.
#tar -zxvf php-4.x.x.tar.gz

2] Run the Advantage PHP Extension installer.
#setup.pl
or
#perl setup.pl

3] Follow the installer prompts.

4] In the PHP source directory type:
#./buildconf
This will include the Advantage PHP Extension in the PHP build and install.

5] Configure PHP with Advantage by using
--with-advantage=/your/to/path/ads/php/.
For example to install the Advantage Extension in Apache with PHP
as a DSO type the following:
#./configure --with-advantage=/usr/local/ads/php --with-apxs \
--enable-track-vars

6] Make and Install PHP:
#make
#make install
#################

Ok, I've downloaded the php source and did the installation step by step.
But after that, the extension doesn't work. So I think, it must be installed/activated in the "Plesk" PHP Installation.
Is there any "How to..." available for the recompiling und installation of php on Plesk Panel?

I need this for an urgent web project and need help? Where can I get help?

Thanks!
 
Thanks for the link and your fast respone!

I think, the PHP build is done. But this PHP build isn't active.
"which php5" returns "/usr/bin/php5", but this is the old build.

Here's the result of "make install":
###############
make install
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' libphp5.la /usr/lib/apache2
/usr/lib/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/
cp .libs/libphp5.so /usr/lib/apache2/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache2/libphp5.la
libtool: install: warning: remember to run `libtool --finish /srv/www/vhosts/oesv.de/httpdocs/adsphp-10.10.0.6/php-5.3.6/libs'
chmod 755 /usr/lib/apache2/libphp5.so
activating php5
"php5" already present
Installing build environment: /usr/lib/php/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/
program: phpize5
program: php-config5
Installing man pages: /usr/share/man/man1/
page: phpize5.1
page: php-config5.1
###############

I hope, this is the last Post. Sorry!
 
What is "php5"? Ususal php binary is /usr/bin/php but not /usr/bin/php5
Version you can see with -v option.
 
I've some domains on this server and all the hosts uses the php5. The phpinfo() shows PHP v.5.2.9.
In /srv/www/cgi-bin is a link "php5" to /usr/bin/php-cgi5.

php -v
PHP 5.3.6 (cli) (built: Apr 6 2011 15:01:55)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

php5 -v
PHP 5.2.9 with Suhosin-Patch 0.9.7 (cli) (built: Mar 12 2009 21:16:18)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd.

The PHP 5.3.6 is my test build from yesterday and not my actual build?!?
And PHP 5.2.9 is the result of phpinfo() on every domain.

So what's wrong? Remake PHP with additional options?
 
Back
Top