Get PHP5 install from source compatible with plesk 8

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
Timon
Forum User
Forum User
Posts: 8
Joined: Mon Jun 12, 2006 8:02 am

Get PHP5 install from source compatible with plesk 8

Unread post by Timon »

Hi there,

I asked "Scott" a few days ago if there is any chance on x86_64 rpms in future and after you said you didn't have a 64 arch development envirement i decided to compile and build php5 myself.

All went very well and php 5 works very well ! I only have one problem.. Plesk doesn't reconize php as installed now.. since i didnt install rpms, but compiled/build and installed it from source. (I uninstalled the old php 4.3.9)

How did you get your i386 php5 compatible with plesk 8, Scott ?

Plesk now disables the PHP engine by putting ' php_admin_flag engine' on OFF in /var/www/vhosts/domain/conf/httpd.include' per domain. If i put it on ON its working again, but the default in plesk is now screwed up as it always puts it off. Probably it doesn't reconize php being installed ?

I can't uncheck any checkbox anymore in plesk control panel as they are checked and disabled. (SEE IMAGE BELOW).

Image

My issue is enhanced/described here:

http://forum.swsoft.com/showthread.php? ... adid=34272

Sorry to jump in like this, but i tried everything and hope there is an answer here ! Thank you in advance !

Timon
Xploreweb.com
Plesk 8.0
RHEl 4 ES x86_64 U3
Timon
Forum User
Forum User
Posts: 8
Joined: Mon Jun 12, 2006 8:02 am

Unread post by Timon »

Okie i have found 2 solutions for this,

1. Build a rpm from source which i did for a x86_64 arch and plesk will reconize php as installed again. Bit of a pain to go through the rpm making process, but well worth it now its working.

2. A solution by plesk self, fool package management..:

Code: Select all

1. save the original packagemng utility

# mv /usr/local/psa/admin/sbin/packagemng /usr/local/psa/admin/sbin/packagemng.orig

2. create /usr/local/psa/admin/sbin/packagemng with the following content:

#!/bin/bash

if [ "x"$1 = "xphp" ]; then
  echo "php:5.1.4-1"
  exit 0
fi
exec /usr/local/psa/admin/sbin/packagemng $@

# end of file

of course you should print appropriate version of php in echo command.

3. assign proper permissions:

# chown root:psaadm /usr/local/psa/admin/sbin/packagemng

# chmod 755 /usr/local/psa/admin/sbin/packagemng

4. and then test wrapper

# /usr/local/psa/admin/sbin/packagemng php
php:5.1.4-1
I can make the RPMS available on request. If anyone is interested..
Xploreweb.com
Plesk 8.0
RHEl 4 ES x86_64 U3
Post Reply