• 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

Multiple PHP Versions in Plesk 12.0 Out of the Box!

Tell me please, how can I add a newer versoin of PHP on the Debian 6 server with Plesk 12.5?
 
What do you mean "add a newer versoin"? You can choose necessary PHP version from already pre-installed and available in Plesk.
Thanks for link, but i've already read this article but unfortunally I can't install other versions of PHP just like that:
75367.png


I see only this menu in my case:
plesk_php.png


also, I've tried to install as described in this article, but in this case I have an error:
Code:
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Without MySQL support I don't see any sense and possibilities to do "make".
Thus, I stuck in this situation, please help me find any way out.
 
Is it only available on certain operating systems maybe?
I've wrote above that my OS is a Debian 6 (Squeeze). Yep, I know that perhaps is rinky-dink OS, but anyway, I guess must be some way out of this situation.
 
root@host:/home/netuser# apt-get install mysql-devel
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
E: Не удалось найти пакет mysql-devel

Content of the sources.list file:
#deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official amd64 NETINST Binary-1 20120930-15:53]/ squeeze main

deb http://ftp.ru.debian.org/debian/ squeeze main
deb-src http://ftp.ru.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.ru.debian.org/debian/ squeeze-updates main
deb-src http://ftp.ru.debian.org/debian/ squeeze-updates main

# Dotdeb repo
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
 
Sorry, mysql-devel is name of corresponding package for RedHat-like OSes. Dor Debian-like OSes it is libmysqlclient-dev
 
Thank you very much, Igor. But now I have another trouble:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
 
I've stuck on last step (add handler):
Code:
root@host:/usr/local/php56-cgi# /usr/local/psa/bin/php_handler --add -displayname php-5.6.13 -path /usr/local/php56-cgi/bin/php-cgi -phpini /usr/local/php56-cgi/etc/php.ini -type fastcgi -id 2
Required option -clipath <path to php-cli> is not set
 
I suppose that path is something like /usr/local/php56-cgi/bin/php-cli
Check it.
 
I suppose that path is something like /usr/local/php56-cgi/bin/php-cli
Check it.
I've checked it. There is nothing related with cli, but I found a file there: /usr/local/php56-cgi/include/php/sapi/cli/cli.h
Is this right path?

p.s. Also I wanna ask about php 4.4.x. I've got configuration error:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
 
Try to find it with

# cd /usr/local/php56-cgi/
# find . -name *cli
 
Back
Top