PHP 4 Handler
Feb 11, 2008I'm with a new cPanel VPS and would like to install a PHP 4 handler. Can I do that from WHM?
If yes how can I perfome this?
I'm with a new cPanel VPS and would like to install a PHP 4 handler. Can I do that from WHM?
If yes how can I perfome this?
somebody suphp?
What is your advice?
I wanted to ask an advice which php handler is the most secure to have on a shared server:
dso vs cgi vs SuPHP
I currently have dso with Suexec on and few accounts are getting phishing sites uploaded so I read that SuPHP is safer. What do you recommend?
If I do change the server to SuPHP should I enable Suexec as well in the whm: Configure Suexec and PHP?
Changing php version to 5.2.6
I just lost the handler....no php handler at all( old: DSO), rebuilding again (second time)...
anyone knows why this happened?
and what should I do, since the last easyapache rebuild didn't work?
On my server (cpanel/whm php version 5) I need phpsuxec enabled so Configure Suexec and PHP I have suxec as on and php handler as cgi.
The problem is that enabling of register_globals through .htaccess file of cpanel accounts is not working. I have tried all kinds of commands as:
php_flag register_globals on
and even tried creating a php.ini » register_globals=on
and that still does not enable register_globals on an account. I do not want to enable register_globals centrally as I am aware that is a security threat.
But if I change to dso php handler that .htaccess code enables register_globals but then phpsuexec is not working.
Is there anyway to combine these two options?
I am running into a bit of a problem. Previously, I can add an apache handler through cPanel easily... but now I moved to mediatemplate.net and that feature isn't available on their contol panel. Since they also run apache, I figured that I can set the apache handler manually through an .htaccess file - is that possible? If so, what is the syntax that will enable me to set .html files to be handled like .php files?
There is one setback to this process - this will be a manually inserted file for every directory that I want to do the above stated file handler. Is there an easier way to do this via SSH? I don't have root access, only normal user access.
I want to know how to change my server API from Apache 2.0 Handler to CGI fast CGI?
I am using kloxo xontrol panel
I want to know how to change my server API from Apache 2.0 Handler to CGI fast CGI?
View 4 Replies View RelatedI'm receiving the following error whenever I try to edit any hosting settings
Unable to determine preferred php handler id
I've found the article for this on the Linux KB (which states to raise a support ticket) but nothing on Windows.
I am running Windows Server 2012 R2 with Plesk 12.0.18
Which Event Handler gets fired when a subscription is created? I've tried both "Hosting settings created" and "Default domain (the first domain added to a subscription/webspace) created" but those don't seem to be firing when I create a new subscription. After creating the Event Handler the psa service was restarted each time. I have a script setup to just log the NEW_DOMAIN_NAME to a file, but that isn't happening.
View 3 Replies View RelatedI just added a new PHP Handler with PHP Verison 5.5.18 as cgi and i always get an error when activating. I used the samte setting and php ini as the Buildin Ones
root@ip1:/usr/local/src/php-5.5.18# /usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom:
5.5.18 5.5.18 5.5.18 5.5 cgi /usr/local/php550-cgi/bin/php-cgi /etc/php5/cli/php.ini true
cgi 5.3.29 5.3.29 5.3 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
fastcgi 5.3.29 5.3.29 5.3 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
module 5.3.29 5.3.29 5.3 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
When i want to activate it i get
Fehler: phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:24] Invalid configuration line. Are there excessive leading spaces?',))
I get this even if i want to activate a build in one.
In my additional php config i have
mail.log = /var/log/phpmail.log
mail.add_x_header = On
date.timezone = "Europe/Berlin"
[Zend]
zend_extension=/usr/lib/php/modules/ioncube_loader_lin_5.3.so
zend_extension=/usr/lib/php5/ZendGuardLoader.so
sendmail_path = /usr/sbin/sendmail-wrapper-php
I am using Debian Squeeze.
sometimes my server doesn't forward emails to other accounts, and I see in log file:
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: handlers_stderr: DEFER
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: DEFER during call 'grey' handler
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: Message aborted.
If I restart the server it works.
I am trying to create plesk event handler
I have created the event
"C:Program Files (x86)ParallelsPleskbinsubscription_settings.exe" -u "${NEW_DOMAIN_NAME}" -disk_space 15G
for domain updated / domain created
But it doesn't run.
If I add hardcode the domain name for example mytest.com
"C:Program Files (x86)ParallelsPleskbinsubscription_settings.exe" -u mytest.com -disk_space 15G
the event works.
On a server which was running for years now and was updated from plesk 10 to plesk 11 and also to plesk 12 (12.0.18 Update #29) there seems to be a bug.
Customers are able to change PHP handler while in site_isolation_settings.ini it is not allowed:
php_handler_type = fastcgi
PSA service was restarted too:
/etc/init.d/psa restart
This is a serious issue because customers should not be able to change PHP handler type.
Only abonnements created with older Plesk versions are affected. I cannot say which version exactly because server had installed Plesk 10, 11 and 12. What do we have to modify to disallow changing the PHP handler type for this abonnements created with Plesk versions befor Plesk 12?
It is posible add new mail handler before queue for spam? Example:
mail_handlers_control --add --priority=10 --executable=/usr/local/psa/handlers/hooks/spam --name=spam --enabled --queue=before-queue --type=recipient-domain --mailname=domain.com --context=text
I need for scan relay mail ....
I have parallel plesk 11.5 on my VPS hosting. Recently I upgraded the PHP version to 5.4 via Updates and Upgrades feature. Now, I am not able to change anything for any domain/website, it always shows me following error:
"Error: Unable to create or update the subscription: The PHP handler "fastcgi-5.4" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again."
I tried creating a handler with same name in IIS but it didn't work. When I checked in "Server Components" the max PHP version is "PHP 5.3.28" but I see PHP 5.4 installed in C:ParallelsPleskAdditionalPleskPHP54 folder on the server.
When logged into the admin panel, I can manage all other domain except for one. When I try to manage this particular domain (which is our own domain rather than a client domain), it takes a while before returning page not found. In the logs, it's getting a high volume of the following error message:
Error: Unable to create or update the subscription: The PHP handler "fastcgi-5.3" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again.
I've tried attacking the issue through IIS. PHP appears to be configured correctly in IIS. I've looked at permissions. The website itself runs fine, I just can't manage the domain.
Another issue, which may be related, is when trying to access the PHP Manager in IIS for the PleskControlManager site, it gets an error stating that it can't find the php.ini file. I don't know if this is normal, or related.
I am running Plesk 11.5.30 on CentOS and trying to change the default permissions of the /httpdocs folder and the skeleton site that is in .skel/0/httpdocs that appears when a domain is created. I have failed to find the event that I need to use to trigger the command.
#!/bin/bash
chmod -R g+rwx "/var/www/vhosts/${NEW_DOMAIN_NAME}/httpdocs"​
Some research suggested using the 'physical hosting created' but there is no option for this in 11.5.30.
I installed FastCGI and configured it via fcgiconfig.js using this command
cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:PHPphp-cgi.exe"
It configured fcgiext.ini and added the .php extension to the sites and what not.
When accessing a php script, I get the following error though:
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:The FastCGI process exited unexpectedly
Error Number: -2147467259 (0x80004005).
Error Description: Unspecified error
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
I did not do anything special with the PHP. It is the zip 5.2.5 from the site. I configured php.ini and move it to c:/windows. I granted IUSR permission on php-cgi.exe
Am I missing something? I followed the guide here
Windows 2003 / IIS6 / PHP 5.2.5