psa-php5-configurator
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
psa-php5-configurator
After using your script to install CentOS 4.2 on my server, I upgraded php to 5.0.4 in your atomic-testing archive. I have a question though. It left psa-php4-configurator. After looking in the PSA files and your archives, I can't find a psa-php5-configurator for CentOS 4.2. Is it ok to leave this off?
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
Well, I went back and installed the psa-php4-configurator rpm just to see what happened and this was the output.
Could this just run once to configure php? I didn't have to force this, it just ran.
Code: Select all
Preparing... ########################################### [100%]
1:psa-php4-configurator ########################################### [100%]
===> configuring php4 using /etc/php.ini file
Trying to set memory limit to 32M... done
Trying to add '.' to 'include_path'... Unable to find 'include_path' varibale in /etc/php.ini
Adding new entry
done
Trying to set 'short_open_tag' to On... done
Trying to set 'file_uploads' to On... done
Trying to set 'safe_mode' to On... done
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
I was thinking the same. I guess we're right:
(Yes, Plesk is full of spelling errors.)
It's a mule alright:
And yes, it's new with Plesk 8. To see the script (it's pretty lengthy, you might want to pipe it to less):
It seems to do the following things with your PHP configuration:
Next to that it has a whole lot of functions for services (ftp, smtp(s), poppassd, named). I have no idea what they are doing in a package called psa-php4-configurator...
Code: Select all
# rpm -qi psa-php4-configurator
...snip...
This is simple scritpt which configure php4 to make it work with Plesk
It's a mule alright:
Code: Select all
# rpm -ql psa-php4-configurator
(contains no files)
Code: Select all
rpm -q --scripts psa-php4-configurator
- Set memory_limit to 32M
- Set the include path
- Set short_open_tag On
- Set file_uploads On
- Set safe_mode On
Next to that it has a whole lot of functions for services (ftp, smtp(s), poppassd, named). I have no idea what they are doing in a package called psa-php4-configurator...
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
If they did it as a trigger as I suspect they did, then its going to run every time you update the php rpm. Look at the man page of rpm for the variables to extract the trigger information from the rpm. There will be a way for you to manually run the trigger as well, I think its --triggeronly or something similiar
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
I don't think you need re-run the configurator. At least I didn't and PHP 5 just works. I believe the configurator only edits /etc/php.ini to change settings like memory_limit and safe_mode to SWsoft's defaults.
Lemonbit Internet Dedicated Server Management
It looks like it's not a trigger (rpm -q --triggers psa-php4-configurator doesn't return anything), it's a script, you can look at it using using the following command:scott wrote:If they did it as a trigger as I suspect they did, then its going to run every time you update the php rpm. Look at the man page of rpm for the variables to extract the trigger information from the rpm. There will be a way for you to manually run the trigger as well, I think its --triggeronly or something similiar
rpm -q --scripts psa-php4-configurator
I've removed and reinstalled the psa-php4-configurator RPM to have it apply the Plesk changes to the new PHP 5 php.ini.
BTW, I had to install a fake php-domxml RPM to satisfy Plesk dependencies (e.g. when adding new components using the autoinstaller), since PHP 5 doesn't have that package anymore.
Is there a better way to handle that?
Thanks.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
My guess is that Troy missed the PHP Project page which tells all about the things you need to do when upgrading using these PHP 5 packages.
Lemonbit Internet Dedicated Server Management
Hi,scott wrote:You shouldnt have to do that, the php-xml package has a Provides for php-domxml that should have picked that up automatically.
I stand corrected, in the end I used the CentosPlus PHP 5 packages (since they are at version 5.1.6, newer than the atomica stable RPMs):
http://mirror.centos.org/centos/4/centosplus/i386/RPMS/
That's why I had to install the fake php-domxml package.
Thanks.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
The ART PHP packages have the advantage of being compatible with Plesk so you don't need to pull tricks like that. 

Lemonbit Internet Dedicated Server Management