• 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

PHP5 install howto?

P

perler

Guest
hi,

I read a lot of threads telling, that installing PHP5 into 7.5.4 is possible. most are doing it by the ART rpms, but this is not an option for me because i'm on debian.

those who did upgrade by recompiling - did you have to do anything in plesk after the instalation? in my case i get the dreaded
PHP support (Component was not installed)

on all my domains.

what can I do?

PAT
 
I am also wondering how to upgrade to PHP 5.1 on a dedicated Linux box running Plesk Reloaded
 
Hello,

First of all, you have to install the following Debian packages:

(You can select packages you are going to use only)

php5-cgi_5.0.5-3_i386.deb
php5-cli_5.0.5-3_i386.deb
php5-common_5.0.5-3_i386.deb
php5-curl_5.0.5-3_i386.deb
php5-dev_5.0.5-3_i386.deb
php5-gd_5.0.5-3_i386.deb
php5-imap_5.0.5-1_i386.deb
php5-ldap_5.0.5-3_i386.deb
php5-mhash_5.0.5-3_i386.deb
php5-mysql_5.0.5-3_i386.deb
php5-odbc_5.0.5-3_i386.deb
php5-pgsql_5.0.5-3_i386.deb
php5-recode_5.0.5-3_i386.deb
php5-snmp_5.0.5-3_i386.deb
php5-sqlite_5.0.5-3_i386.deb
php5-sybase_5.0.5-3_i386.deb
php5-xmlrpc_5.0.5-3_i386.deb
php5-xsl_5.0.5-3_i386.deb
php5_5.0.5-3_all.deb

After that you need to run "/opt/psa/admin/sbin/websrvmng -a -v" and restart Apache service.

To install php5 you can add into /etc/apt/sources.list the following lines:

deb http://debian.home-dn.net/sarge php5/

or

deb http://people.debian.org/~dexter php5.0 sarge

After that run "apt-get update" to update packages list.

Then install php5 using your favorite packages installer.

Basically if php5 package is installed and properly configured, then Plesk recognizes it automatically and starts to use.
 
Originally posted by kmv123
Hello,


After that you need to run "/opt/psa/admin/sbin/websrvmng -a -v" and restart Apache service.

To install php5 you can add into /etc/apt/sources.list the following lines:

deb http://debian.home-dn.net/sarge php5/

or

deb http://people.debian.org/~dexter php5.0 sarge

After that run "apt-get update" to update packages list.

Then install php5 using your favorite packages installer.

Basically if php5 package is installed and properly configured, then Plesk recognizes it automatically and starts to use.

i wonder why my plesk installation doesn't recognizes it and disables php (see first post). any ideas? i use the php from backports.org..

PAT
 
Originally posted by perler
i wonder why my plesk installation doesn't recognizes it and disables php (see first post). any ideas? i use the php from backports.org..

PAT

What is output of following command:

$dpkg -l php* | grep ^i
 
Code:
iss2:~/transfer# dpkg -l php* | grep ^i
ii  php4-common    4.3.10-16      Common files for packages built from the php
ii  php4-gd        4.3.10-16      GD module for php4
ii  php4-imap      4.3.10-16      IMAP module for php4
ii  php5-cli       5.1.2-1.dotdeb PHP 5 scripting language
ii  php5-common    5.1.2-1.dotdeb Common files for packages built from the php
ii  php5-curl      5.1.2-1.dotdeb CURL module for php5
ii  php5-gd        5.1.2-1.dotdeb GD module for php5
ii  php5-mcrypt    5.1.2-1.dotdeb MCRYPT module for php5
ii  php5-mhash     5.1.2-1.dotdeb MHASH module for php5
ii  php5-ming      5.1.2-1.dotdeb Ming module for php5
ii  php5-mysql     5.1.2-1.dotdeb MySQL module for php5
ii  php5-odbc      5.1.2-1.dotdeb ODBC module for php5
ii  php5-pear      5.1.2-1.dotdeb PEAR - PHP Extension and Application Reposit
ii  php5-tidy      5.1.2-1.dotdeb Tidy module for php5
 
Re: Debian Plesk PHP5 instructions

Originally posted by samoli
Hi. I managed to get PHP5 working on my Debian Sarge / Plesk 7.5.5 installation with apache2.

where can i get Plesk 7.5.5 i only found 7.5.4 on the www.swsoft.com download site ?

do someone know when plesk 8 is ready for download ?

daniel
 
Supposedly the beta version of 8.0 will be released at the end of the month. But I'd wait a while before upgrading, until version 8.0.2 or so. There are always bugs in the early release.
 
ok, i try now to install plesk 7.5.4 on debain sarge with php5, i am new with plesk ....

i hope it works fine .....

daniel
 
I've noticed some problems with horde when you upgrade due to a change in the way the php function array_shift() has changed it's behaviour since php 5.0.5..

I made a couple of simple hacks to the psa horde code and it works now. Let me know if you need them
 
As far as I know the dotdeb packages should work fine.. I haven't tried it but I can't see why they wouldn't.
 
are there some importent howtos / sites / informations for plesk beginners ?

daniel
 
Re: Debian Plesk PHP5 instructions

Originally posted by samoli
Hi. I managed to get PHP5 working on my Debian Sarge / Plesk 7.5.5 installation with apache2.

Here's what I did (in 5 easy steps):

Installing PHP5 on Debian Sarge with Plesk & apache2

Hope that's helpful to someone!

Sam

That was super helpful. I'd like to thank you for posting this.

Do you know how to get plesk to recognize php5?
 
Back
Top