Plesk 11.x / Windows :: PHP Errors Log / Display In PHP 5.4.15 FastCGI
Jan 24, 2014
I have Plesk 11.0.9 From Godaddy.
I have a problem in PHP Errors Log/Display in PHP 5.4.15 FastCGI
In my configuration "C:Program Files (x86)ParallelsPleskAdditionalPleskPHP54php.ini"
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
In my Plesk Web Panel Settings For the domain
error_reporting 32767 <- For 5.4.x
display_errors on
log_errors on
I made a PHP error in test file
Code:
<?php
echo eeeee;
?>
It should give me error in line 2 [ Display & Log ] the error. but it don't do anyone of them it gave me 500 Internal Server Error and it's not logging the error to the directories
C:inetpubvhostsDomain.comstatisticslogs
OR
C:Program Files (x86)ParallelsPleskadminlogsphp_error.log
C:Program Files (x86)ParallelsPleskadminlogsphp_error.log <--- Successfully logging Errors Like
[14-Dec-2013 13:12:07 UTC] rrdtool execution failed: ERROR: fetching cdp from rra
I have installed Apache httpd and setup a SSL/TLS connection. SSL/TLS is working without a problem. I can clearly see httpS address in browser.
What I have found out that if browser gets some SSL/TLS error like trying to establish SSL/TLS connection with old protocol and web server refuses connection there is no error in SSL/TLS log recorded. I would like that every SSL/TLS attempt with error is recorded in ssl_error.log file. How to define settings in Apache config files to enable SSL/TLS error logging?
Using Plesk 12 with an automated install of Wordpress. Created a site locally using wamp and after some database related issues finally managed to upload the content using a plug in and the content looks fine and largely(!) works.The directory structure is root/httpdocs/wordpress (and I can't change that as a webapp is using it - presumably the Wordpress install).
Following various articles on the net I've deleted the Wordpress skeleton files and index.html file however I'm not entirely sure whether the index.php file should directly be under root or in the httpdocs folder?? - as wherever I put index.php and edit the path accordingly it doesn't display the site.Adding the wordpress folder into the site address ie mysite.com/wordpress displays the content.
Also one article indicated that as I'm using permalinks I need to also copy the .htaccess file but it doesn't display in the Plesk file manager. I know it's a hidden file but I can't see it either when forcing FileZilla to show hidden files.[edit - as it's a windows server, further reading indicates it should be web.config rather than .htaccess (?) but the same comment applies... imh]
I moved from one.com where my domain was hosted to strato, where I have a Windows Server 2012 r2 running Plesk 12.The problem is that wordpress is not working properly.one of my installations is accessable, the other isn't!The one that I can access, is working so far, as soon as I install a plugin for price tables and insert the shortcode to one of my pages, I get an "500 Internal Server Error". When I'm doing that on the server I'm seeing this error: "...httpdo cswp-contentpluginspricing-table able-templates td-grayprice_table.php on line 22"
As soon as I remove it and do it with another one, I get an error with an other file!So I guess the problem is not Wordpress but some missing php features, right?Do I need to activate or install some php extensions?
When I try to reset the Personal FTP Repository setting in Backup Manager, I get "Transport error: unable to list directory: Curl error: Failure when receiving data from the peer"
I've read a solution to this issue for Plesk for Linux, but not for Windows. I have my FTP server setup for FTPS (require explicit FTP over TLS) and when I put the correct information in each box, I get this error. In the meantime, the current settings (for standard FTP) are incorrect.
Obviously the most important this is to correct the Transport and Curl errors, but if I'm unable to do so, how do you clear the current setting? There doesn't seem to be a way to do it...
I have some customers who use a VPN to connect to the internet securely. (They live in a restricted country.)
So when they connect to the VPN, it gives them a new IP, and when they go to "whatismyip.com" it shows the IP of the VPN server, as expected.
The problem is that sometimes their IP changes back to their local ISP without any indication. The VPN still appears to work (green lights are displayed in the VPN icon in the sytem tray), but their IP is now the local ISP providers, which means they are not fully "protected" any more.
And that is bad.
So, what I'm thinking is to find a Windows program or script or something that runs every x minutes.. and checks to see what is the current IP. If it isn't as expected (the VPN server's IP), then a big red warning window would start flashing on the screen, so they can then reboot or restart the VPN.
Does anyone know of such a program?
(BTW - they are using openVPN, latest version. And yes -- it works properly 99% of the time.. but for some reason the IP just changes back to local ISP for no apparent reason. The log does not show any errors or helpful indicators.)
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
The server authenticates the FTP login, Plesk Panel shows the session, but none of the FTP's display the folder. Whats the command to reset FTP connections.
CentOS 7 + Parallels 12.0.18 I've found articles for older versions or CentOS 6, but those commands no longer work...
I setup PHP support to Run as FastCGi Application, and i setup the memory_limit=32M in DOMAIN/etc/php.ini, then i create a php program with ini_set('memory_limit','128M'), it does not according to my settings are limited. How can i limit it , only just use the disable_function = 'ini_set' ? or Was there other methods ? Because, When PHP runs as apache module , i can use the php_admin_value in vhost.conf to limit what i want , it does not limit everything like this (disable_function).
I've a new installation of Plesk 12 on a VPS (Ubuntu LTS12.04) and when FastCGI is selected it downloads the PHP files instead of parsing the PHP? Where to look config wise? I've checked php short tag options and they all seem fine.I've set up a test subscription to display the error here: URL....
In my Plesk 12.0, I installed support por PHP 5.3, and 5.4. But when I go to configure my site, I only can select these versions if I put PHP like FastCGI:
But in "Apache Module" I only can select PHP 5.3.3:
My WebSite doesn't work with FastCGI, only with "Module Apache".
I've been working on a project that I am trying to utilize some of the new functions from PHP 5.5 so I changed the PHP version from 5.3 to 5.5 on this domain, but I am getting a 500 error. I've found this kb: [URL] .... which is my exact issue, but the resolution doesn't work for me.
All of the permissions are set right, all of the modules are compiled and registered correctly, but I'm still getting a 500 error.
From error_log:
Code:
[Sun May 31 20:32:31 2015] [warn] [client] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Sun May 31 20:32:31 2015] [error] [client] Premature end of script headers: adduser-exec.php # /usr/local/psa/admin/bin/php_handlers_control --list :
I have this System Debain 7.x Whyzee, 64 Bit Version, 16 GB Ram with 8 x 3.2 GHZ. I have update plesk von version 11 to version 12 he say any failure in error.logs by costumer
Code: [Sat Jul 19 20:58:23 2014] [warn] [client xx.xx.xx.xx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Sat Jul 19 20:58:23 2014] [error] [client xx.xx.xx.xx] Premature end of script headers: index.php
I changed to a new server with plesk 12 and every php that worked with Plesk 11.5 and php 5.4 doesn't work in the new server with fstcgi and php 5.4. They run fine if I config subdomain with FastCgi php5.3 but don't with php 5.4.35. I get this error message in error_log of subdmain using this versión of php (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server. Premature end of script headers: test.php
there is no error in /var/log/httpd/suexec_log phpini seems OK.My system uses Centos 6.4 and
I have the following problem, the files and folders generated by PHP are hidden in FTP.
I can see in the Plesk file manager that users, permissions and groups are the same for all files and folders (those that can be seen and those that cannot be seen from FTP).
All the options in the server are set by default. It is a new installation of Plesk 12.0.18 #4 in CentOS 6.5 (Final).
104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Mon Jun 22 15:33:11 2015] [error] [client 176.10.112.11] Premature end of script headers: import_cop.php
and Apache Log
[Mon Jun 22 11:06:57 2015] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Jun 22 15:46:17 2015] [error] (12)Cannot allocate memory: fork: Unable to fork new process PHP Warning: Module 'zip' already loaded in Unknown on line 0
How can I fix this problem? The Script is 100% i/O because it has worked onder PHP 5.2 and its comp. whit 5.4.
[xcache.coverager] xcache.coverager = Off xcache.coveragedump_directory = ""
If I open phpinfo I can see that xcache is loaded and can see the settings, I have also installed the xcache admin panel and I am able to access that without problem.
However if I enable xcache on in the PHP scripts (vbulletin) file I get multiples of the following errors:
Quote:
Warning: xcache_isset() [function.xcache-isset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 557
Quote:
Warning: xcache_unset() [function.xcache-unset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 596
Quote:
Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 597
Now unless I am being thick, var_size is currently set to 128M, it was originally 4M but as the error suggested "too small" I upped it a little with no affect.
The only thing I can think might be related to this is that I am using PHP 5.2.6 and I am using xCache 1.2.2 for PHP 5.2.5 as there is no 5.2.6 version
I have an issue with running of the php-scripts. It runs via Cron (as it consumes a lot of memory), after aprox. 10 minutes after the start-time of the script the following error appears in the error-log file (path - /var/www/vhosts/system/subdomain.domain.tld/logs/error_log)
[Tue Feb 17 19:46:57.003326 2015] [fcgid:warn] [pid 28629] (104)Connection reset by peer: [client XX.XXX.XXX.XXX:48450] mod_fcgid: error reading data from FastCGI server [Tue Feb 17 19:46:57.003368 2015] [core:error] [pid 28629] [client XX.XXX.XXX.XXX:48450] End of script output before headers: Name_of_the_script.php
For a very strange reason another PHP-script, that has the same code, but just runs less arrays, and therefore consumes less memory and can be run via browser - works perfectly from both browser and the cron. The php.ini for this domain set up correctly (see the attachment)...
[Mon Mar 23 20:53:14 2015] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Mon Mar 23 20:53:14 2015] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php
I'm trying to add multiple PHP version (current version installed: 5.5.13), using the official documentation. I always get 500 Internal Server Error after switching to the new version, with the following error_log content:
Code: [Sat Jun 07 00:49:35 2014] [warn] [client XXX.XXX.XXX.XXX] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Sat Jun 07 00:49:35 2014] [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: index.php Here you can view phpinfo() obtained running php54-cgi index.php from the command line. Same script doesn't work as FastCGI.
I'm trying to add PHP 5.4.29. Here is how I compiled it:
Switching back to PHP 5.5.13 and the script works fine (a simple phpinfo() output).How can I try to understand/debug what's wrong with the installation?
Getting the following when trying to install DNN. A similar thing also happened when trying to install WordPress.
Error: Installation of DotNetNuke at http://domain.com/dnn failed. Non-zero exit status returned by script. Output stream: 'Error during MSSQL version checking [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. '. Error stream: 'Error during MSSQL version checking [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. '.
When it happened with WordPress, I tried the install again and it worked the second time. However, with DNN it does not seem to be working after a second try. Yes, the MS SQL server does exist and is ready to provide.