• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Zend Server install - PPP doesn't see PHP

D

dugjohnson

Guest
I did an install of Zend Server last week and all went well, except that now PPP doesn't recognize that PHP exists.
I have tried updating the MySQL record in psa Components with the version 5.2.9 and that "works" for a little while, but eventually, it gets cleared out again. PHP works for the websites, until the site gets its httpd.include rewritten by PPP telling it that there is no PHP to be had.

I've tried a few vhost.conf options, but nothing that has worked well, so far. Learning, but not enough yet.

I'd LIKE to be able to put something somewhere, or create a symbolic link to where zend has php so that PPP will "see" it and act correctly, but I am not really sure where PPP is looking.

In no particular order

A) where does PPP look for PHP and what is it looking for?
B) is there a good way to change this for a different install (such as Zend Server)?
C) Any links to PHP specific work that PPP does that is affecting the running of PHP and how I can overcome with vhost (or some other method)? I have done SOME work with php_admin_flag engine and php_admin_value basedir but nothing conclusive yet (more to learn).

I've spent a good portion of last weekend on this and have the base knowledge now (I hope) to understand any answers I might get.

This is a dedicated server, Centos, at 1and1, and I have full rights to the whole thing.
The php.ini is in /usr/local/zend/etc/
 
PHP 5.2.9 (cli) (built: Mar 10 2009 16:42:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
 
are you sure about the php.ini file location? have you edit the configuration, it is fully commented?

what does this tell you? .../etc/init.d/httpd configtest

then try this if all says ok. ... /etc/init.d/httpd restart
 
Yes, I'm sure about the php.ini location.
This is where things are put by an installation of zend server, apparently, which may be why there is a problem.
The result of configtest was
Syntax OK
and I did a restart. (I've actually done a number of restarts over the last few days, but I appreciate you working with me on this).
 
verify your php.ini installation directory, there may be several php.ini files, one just a summary of the main config, or even for specific applications. Find the main one that is fully commented, then edit the configuration as needed for your server.
run this simple command:


locate php.ini


Have you looked at your telnet configuration? Is it enabled through your firewall?
 
Did you mean
whereis php.ini
locate php.ini gives me nothing.
whereis does, indeed, give me a number of php.ini files, which I knew about.
The one that is reported by a phpinfo() call inside the sites is the one that I have been editing.
What configuration setting are you referring to? Again, I'm trying to determine what Plesk is looking for and/or where it is looking for it, so that I can cause it to continue to report that PHP is installed without having to override the settings in the psa MySQL database manually.
 
sorry, i may just be confusing the issue. good luck with this.
 
I also tried to run Zend Server with Plesk, but with no success. Had the same problems, would be great if someone could provide a working solution for this...
 
Having the same issue, where before installing Zend Server php was enabled for all domains and sub-domains.

After installing Zend Server, adding a sub-domain does not give it php enabled and you cant select to enable it as the checkbox is disabled.

From Dugs post above and Zend Forums (http://forums.zend.com/viewtopic.php?f=44&t=634&p=6291) I had a look at the MySQL db and found that viewing the psa.subdomains table had false for php for the recent sub-domain.

Changed this to true, then needed to go into the sub-domain details page in Plesk. After the above, viewing the sub-domain details shows the php checkbox is now ticked. Click Save so as to generate a new httpd.include file.

The newly added sub-domain is now serving .php files properly.

Noticed the psa.hosting table has similar details to the sub-domains table relating to domains.

Then also updated the psa.Components table
php -> 5.2.9

After the above, viewing the sub-domain details shows the php checkbox is still ticked but also now not disabled.

Hope this helps anyone wanting an interim solution until a fixed one comes through Plesk / Zend.

Regards

Victor.
 
What about path to php in Plesk config?

# grep -i php /etc/psa/psa.conf
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

Also, reinstalling this package may help:
# rpm -qa | grep psa-php
psa-php5-configurator-1.5.1-cos5.build92090422.13
 
Back
Top