• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Installing php 5.4 how another version of php in PLESK 11.5.30

jortsc

New Pleskian
Hello,
I'm following this how to http://kb.parallels.com/en/114753 , but after dowload and ./configure it , I can`t continue with installation because there are no make files in.

When I try to do make I get:

/usr/local/src/php540/php-5.4.20# make
make: *** No targets specified and no makefile found. Stop.


/usr/local/src/php540/php-5.4.20# ls -l
total 4952
-rw-r--r-- 1 501 staff 79859 sep 18 07:48 acinclude.m4
-rw-r--r-- 1 501 staff 310183 sep 18 07:57 aclocal.m4
drwxr-xr-x 2 501 staff 4096 oct 3 11:34 build
-rwxr-xr-x 1 501 staff 772 sep 18 07:48 buildconf
-rw-r--r-- 1 501 staff 334 sep 18 07:48 buildconf.bat
-rw-r--r-- 1 501 staff 11160 sep 18 07:48 CODING_STANDARDS
-rw-r--r-- 1 501 staff 44893 sep 18 07:48 config.guess
-rw-r--r-- 1 root root 170520 oct 3 11:35 config.log
-rwxr-xr-x 1 root root 1446 oct 3 11:35 config.nice
-rw-r--r-- 1 501 staff 33399 sep 18 07:48 config.sub
-rwxr-xr-x 1 501 staff 2974220 sep 18 07:57 configure
-rw-r--r-- 1 501 staff 45431 sep 18 07:48 configure.in
-rw-r--r-- 1 501 staff 91 sep 18 07:48 CREDITS
drwxr-xr-x 78 501 staff 4096 oct 3 11:34 ext
-rw-r--r-- 1 501 staff 24838 sep 18 07:48 EXTENSIONS
-rw-r--r-- 1 501 staff 137 sep 18 07:48 footer
-rw-r--r-- 1 501 staff 2163 sep 18 07:57 generated_lists
-rwxr-xr-x 1 501 staff 486 sep 18 07:48 genfiles
-rw-r--r-- 1 501 staff 1143 sep 18 07:48 header
drwxr-xr-x 2 root root 4096 oct 3 11:35 include
-rw-r--r-- 1 501 staff 95750 sep 18 07:48 INSTALL
-rw-r--r-- 1 501 staff 0 sep 18 07:57 install-sh
drwxr-xr-x 2 root root 4096 oct 3 11:35 libs
-rw-r--r-- 1 501 staff 3218 sep 18 07:48 LICENSE
-rw-r--r-- 1 501 staff 199728 sep 18 07:48 ltmain.sh
drwxr-xr-x 3 501 staff 4096 oct 3 11:34 main
-rwxr-xr-x 1 501 staff 2941 sep 18 07:48 makedist
-rw-r--r-- 1 501 staff 1073 sep 18 07:48 Makefile.frag
-rw-r--r-- 1 root root 1192 oct 3 11:35 Makefile.fragments
-rw-r--r-- 1 501 staff 2263 sep 18 07:48 Makefile.gcov
-rw-r--r-- 1 501 staff 5574 sep 18 07:48 Makefile.global
-rw-r--r-- 1 root root 6781 oct 3 11:35 Makefile.objects
-rw-r--r-- 1 501 staff 5317 sep 18 07:48 makerpm
-rw-r--r-- 1 501 staff 0 sep 18 07:57 missing
-rw-r--r-- 1 501 staff 0 sep 18 07:57 mkinstalldirs
drwxr-xr-x 2 501 staff 4096 oct 3 11:34 netware
-rw-r--r-- 1 501 staff 410439 sep 18 07:48 NEWS
drwxr-xr-x 2 501 staff 4096 oct 3 11:34 pear
-rw-r--r-- 1 501 staff 1489 sep 18 07:48 php5.spec.in
-rw-r--r-- 1 501 staff 2523 sep 18 07:48 php.gif
-rw-r--r-- 1 501 staff 67005 sep 18 07:48 php.ini-development
-rw-r--r-- 1 501 staff 67038 sep 18 07:48 php.ini-production
-rw-r--r-- 1 501 staff 1570 sep 18 07:48 README.EXTENSIONS
-rw-r--r-- 1 501 staff 6249 sep 18 07:48 README.EXT_SKEL
-rw-r--r-- 1 501 staff 4760 sep 18 07:48 README.GIT-RULES
-rw-r--r-- 1 501 staff 5438 sep 18 07:48 README.input_filter
-rw-r--r-- 1 501 staff 3426 sep 18 07:48 README.MAILINGLIST_RULES
-rwxr-xr-x 1 501 staff 6040 sep 18 07:48 README.namespaces
-rw-r--r-- 1 501 staff 5585 sep 18 07:48 README.NEW-OUTPUT-API
-rw-r--r-- 1 501 staff 6935 sep 18 07:48 README.PARAMETER_PARSING_API
-rw-r--r-- 1 501 staff 4740 sep 18 07:48 README.PHP4-TO-PHP5-THIN-CHANGES
-rw-r--r-- 1 501 staff 20918 sep 18 07:48 README.REDIST.BINS
-rw-r--r-- 1 501 staff 10297 sep 18 07:48 README.RELEASE_PROCESS
-rw-r--r-- 1 501 staff 4698 sep 18 07:48 README.SELF-CONTAINED-EXTENSIONS
-rw-r--r-- 1 501 staff 15373 sep 18 07:48 README.STREAMS
-rw-r--r-- 1 501 staff 7605 sep 18 07:48 README.SUBMITTING_PATCH
-rw-r--r-- 1 501 staff 6678 sep 18 07:48 README.TESTING
-rw-r--r-- 1 501 staff 4957 sep 18 07:48 README.TESTING2
-rw-r--r-- 1 501 staff 4261 sep 18 07:48 README.UNIX-BUILD-SYSTEM
-rw-r--r-- 1 501 staff 109 sep 18 07:48 README.WIN32-BUILD-SYSTEM
-rwxr-xr-x 1 501 staff 78823 sep 18 07:48 run-tests.php
drwxr-xr-x 24 501 staff 4096 oct 3 11:34 sapi
drwxr-xr-x 5 501 staff 4096 oct 3 11:34 scripts
-rwxr-xr-x 1 501 staff 2105 sep 18 07:48 server-tests-config.php
-rwxr-xr-x 1 501 staff 51718 sep 18 07:48 server-tests.php
-rwxr-xr-x 1 501 staff 108 sep 18 07:48 snapshot
-rw-r--r-- 1 501 staff 10 sep 18 07:48 stamp-h.in
-rw-r--r-- 1 501 staff 1 sep 18 07:48 stub.c
-rwxr-xr-x 1 501 staff 50 sep 18 07:48 svnclean.bat
drwxr-xr-x 10 501 staff 4096 oct 3 11:34 tests
drwxr-xr-x 2 501 staff 4096 oct 3 11:34 TSRM
-rwxr-xr-x 1 501 staff 27142 sep 18 07:48 UPGRADING
-rw-r--r-- 1 501 staff 8556 sep 18 07:48 UPGRADING.INTERNALS
-rwxr-xr-x 1 501 staff 297 sep 18 07:48 vcsclean
drwxr-xr-x 3 501 staff 4096 oct 3 11:34 win32
drwxr-xr-x 4 501 staff 4096 sep 18 07:57 Zend

What I'm doing wrong?

How must I continue?
 
Hello,

Which configure command are you using ? and Are you getting any error in that command ?
 
Hello,
I'm using the same that the how to shows:

./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php540-cgi' '--with-config-file-path=/usr/local/php540-cgi/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php540-cgi' '--with-png-dir=/usr/local/php540-cgi' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php540-cgi' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr' '--enable-shmop' '--enable-calendar' '--without-sqlite3' '--with-libxml-dir=/usr/local/php540-cgi' '--enable-pcntl' '--with-imap' '--with-imap-ssl' '--enable-mbstring' '--enable-mbregex' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-ldap' '--with-ldap-sasl' '--with-mysql=/usr' '--with-mysqli' '--with-snmp' '--enable-soap' '--with-xsl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pdo' '--with-pdo-mysql' '--with-pdo-pgsql' '--with-pear=/usr/local/php540-cgi/pear' '--with-mcrypt' '--enable-intl' '--without-pdo-sqlite' '--with-config-file-scan-dir=/usr/local/php540-cgi/php.d'

In its execution the last extension has a mistake:

checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

Everything else is well set.

Thank you very much.
 
./configure stage was not completed successfully and Makefile was not created for make command.
Looks like libxml2 package is not installed on your server. Install it with something like

# yum install libxml2 libxml2-devel

After that run configure again.
 
Hello IgorG,
I've installed libxml2 and now I'm getting:

configure: error: Cannot find OpenSSL's <evp.h>
/usr/local/src/php540/php-5.4.20# make
make: *** No targets specified and no makefile found. Stop.

I've tried to find /usr/include/openssl without results.
 
Install openssl-devel pacakage with yum and run configure again. Do not run make until configure is not completed successfully.
 
I can't find openssl-devel:
apt-cache search openssl | grep openssl

libcrypt-openssl-random-perl - Access to the OpenSSL pseudo-random number generator
libcrypt-openssl-rsa-perl - module for RSA encryption using OpenSSL
libevent-openssl-2.0-5 - Asynchronous event notification library (openssl)
libgnutls-openssl27 - GNU TLS library - OpenSSL wrapper
openssl-blacklist - Blacklists for OpenSSL RSA keys and tools
openssl-blacklist-extra - Non-default blacklists of OpenSSL RSA keys
libcrypt-openssl-bignum-perl - Access OpenSSL multiprecision integer arithmetic libraries
libcurl4-openssl-dev - Archivos de desarrollo para libcurl (OpenSSL)
openssl - Secure Socket Layer (SSL) binary and related cryptographic tools
python-openssl - Envoltura Python para la biblioteca OpenSSL
python-openssl-dbg - Envoltura Python para la biblioteca OpenSSL (extensión de depuración)
python-openssl-doc - Envoltorio Python para la biblioteca OpenSSL (paquete de documentación)
globus-gsi-openssl-error-dbg - Globus Toolkit - Globus OpenSSL Error Handling Debug Symbols
globus-openssl-module-dbg - Globus Toolkit - Globus OpenSSL Module Wrapper Debug Symbols
globus-openssl-module-progs - Globus Toolkit - Globus OpenSSL Module Wrapper Programs
libcrypt-openssl-dsa-perl - module which implements the DSA signature verification system
libcrypt-openssl-x509-perl - Perl extension to OpenSSL's X509 API
libengine-pkcs11-openssl - OpenSSL engine for PKCS#11 modules
libglobus-gsi-openssl-error-dev - Globus Toolkit - Globus OpenSSL Error Handling Development Files
libglobus-gsi-openssl-error-doc - Globus Toolkit - Globus OpenSSL Error Handling Documentation Files
libglobus-gsi-openssl-error0 - Globus Toolkit - Globus OpenSSL Error Handling
libglobus-openssl-module-dev - Globus Toolkit - Globus OpenSSL Module Wrapper Development Files
libglobus-openssl-module-doc - Globus Toolkit - Globus OpenSSL Module Wrapper Documentation Files
libglobus-openssl-module0 - Globus Toolkit - Globus OpenSSL Module Wrapper
libpathfinder-openssl-1 - Pathfinder integration Library for OpenSSL
libxmlsec1-openssl - Openssl engine for the XML security library
aolserver4-nsopenssl - AOLserver 4 module: module for SSL mode
 
The package name is 'libssl-dev' for Debian.

# apt-get install libssl-dev
 
I see, thanks.

I've installed openssl but still there's the same error. I've tried to do this but doesn't works:

'--with-openssl=/usr/bin'

openssl was installed in this directory.
 
Do you have file /usr/include/openssl/evp.h ? It is part of installed libssl-dev for Debian.
 
When I run this command:

./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php540-cgi' '--with-config-file-path=/usr/local/php540-cgi/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php540-cgi' '--with-png-dir=/usr/local/php540-cgi' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php540-cgi' '--with-openssl=/usr/bin' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr' '--enable-shmop' '--enable-calendar' '--without-sqlite3' '--with-libxml-dir=/usr/local/php540-cgi' '--enable-pcntl' '--with-imap' '--with-imap-ssl' '--enable-mbstring' '--enable-mbregex' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-ldap' '--with-ldap-sasl' '--with-mysql=/usr' '--with-mysqli' '--with-snmp' '--enable-soap' '--with-xsl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pdo' '--with-pdo-mysql' '--with-pdo-pgsql' '--with-pear=/usr/local/php540-cgi/pear' '--with-mcrypt' '--enable-intl' '--without-pdo-sqlite' '--with-config-file-scan-dir=/usr/local/php540-cgi/php.d'

I get:

configure: error: Cannot find OpenSSL's <evp.h>
 
Try install additionally:

# apt-get install libcurl4-openssl-dev pkg-config
 
I've installed taht package succesful but I get the same error:

configure: error: Cannot find OpenSSL's <evp.h>
 
Hello InderS,

I've tried it and again I get:

configure: error: Cannot find OpenSSL's libraries

I don't know what is happening... Monday I'll delete all files and start the how to with your advices.

I'll tell you how it goes.

Thank you very much.
 
Back
Top