I'm trying to install Wordpress on Windows 7. I'm using Wordpress 3.9.2, Apache 2.2.25 (httpd-2.2.25-win32-x86-openssl-0.9.8y.msi), PHP 5.5.16 (php-5.5.16-Win32-VC11-x86.zip), and mod_fcgid 2.3.6 (mod_fcgid-2.3.6-win32-x86.zip).
Here are the Apache settings I'm trying to use:
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "C:/php"
AddHandler fcgid-script .php
FcgidWrapper "C:/php/php-cgi.exe" .php
When I try to visit any page, I get a 500 Internal Server Error, with error.log entries such as these:
[Thu Aug 21 13:45:45 2014] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result error, referer: http://localhost:8080/wordpress/readme.html
[Thu Aug 21 13:45:45 2014] [error] [client 127.0.0.1] Premature end of script headers: install.php, referer: http://localhost:8080/wordpress/readme.html
[Thu Aug 21 14:05:05 2014] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result error
[Thu Aug 21 14:05:05 2014] [error] [client 127.0.0.1] Premature end of script headers: test.php
I notice that the PHP files in the Wordpress distribution appear to use LF line endings instead of CRLF. However, test.php is a tiny file I created in Notepad, which therefore must be using CRLF endings instead of LF. Therefore, the line endings don't seem to be the problem.
Well, it works now, and I don't know how I fixed it.
Here's what I remember happening. test.php was giving me the above 500 error. I tried running php.exe in the Windows command line, and I also uncommented the error_log line in php.ini. (Both of these actions revealed the apparently unrelated warning "PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\php_mysqli.dll' - The specified module could not be found.") Then I tried visiting test.php again, and it worked.
Related
I am fairly new to Drupal.
I just got an already existing Drupal project and want to install it.
I copied it to: /var/www/html/myprojects/mydrupalproject
Then I got this error in my error.log from apache2:
[Thu May 03 17:55:41.603774 2018] [php7:notice] [pid 11604] [client
127.0.0.1:41930] PHP Notice: Constant DATE_RFC7231 already defined in /var/www/html/myprojects/mydrupalproject/includes/bootstrap.inc on
line 258, referer: http://127.0.0.1/myprojects/
[Thu May 03 17:55:41.604601 2018] [php7:error] [pid 11604] [client
127.0.0.1:41930] PHP Fatal error: require_once(): Failed opening required
'/var/www/html/myprojects/mydrupalproject/profiles/clusters_public/modules/contrib/apc/drupal_apc_cache.inc'
(include_path='.:/usr/share/php') in
/var/www/html/myprojects/mydrupalproject/includes/bootstrap.inc on
line 2632, referer: http://127.0.0.1/myprojects/
So I tried to use the original .htaccess info in case it was the problem but I still get exactly the same error in the log. Any help?
Failed opening required
'/var/www/html/myprojects/mydrupalproject/profiles/clusters_public/modules/contrib/apc/drupal_apc_cache.inc'
Does this file exist on your webserver and is it accessable? Are the correct file-rights set?
I have a big problem with my website. 2 days ago it started to have high response times, slow menus, etc...
When I checked the apache log I saw this:
[Tue Nov 15 08:03:02.483834 2016] [cgi:error] [pid 5936] [client
90.164.184.119:35610] End of script output before headers: ea-php56,
referer: http://m.facebook.com/
[Tue Nov 15 08:03:03.528154 2016] [cgi:error] [pid 6856] [client
90.171.139.86:55239] End of script output before headers: ea-php56,
referer: http://m.facebook.com/
[Tue Nov 15 08:02:48.314544 2016] [cgi:error] [pid 6645] [client
94.143.78.239:54843] AH01215: PHP Deprecated: Automatically populating
$HTTP_RAW_POST_DATA is deprecated and will be removed in a future version.
To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini
and use the php://input stream instead. in Unknown on line
0:/usr/local/cpanel/cgi-sys/ea-php56, referer:
http://www.url.es/moreurl....
Apache generates this lines of code each 4 or 5 seconds, i think may be this te cause of the slow server (VPS SSD).
I tried to set always_populate_raw_post_data to -1, and the performance has improved, but not even close what it has to be.
The website is based on wordpress, and I hope someone has experience with this issue...
Thanks in advance
Solution: Finally I did set up "always_populate_raw_post_data to -1" and I reinstalled WP Supercache on WP and all it's fine now.
everybody
I'm working on certain project and it worked just fine until the server provider decided to upgrade to PHP 5.6 and now the page is showing error 500.
I've already checked and I found out that this can be caused by few things...
This particular project doesn't use .htaccess file so, I know that's not the problem.
I also read that problem can be somewhere on server so checked the log and this is the message that I get.
[Fri Dec 04 10:17:47.603342 2015] [fcgid:warn] [pid 12468] (104)Connection reset by peer: [client 10.32.109.52:55105] mod_fcgid: error reading data from FastCGI server
[Fri Dec 04 10:17:47.603409 2015] [core:error] [pid 12468] [client 10.32.109.52:55105] End of script output before headers: index.php
You've got a message: End of script output before headers: index.php
So check your code in index.php. Just try to delete all code from file index.php and add this:
<?php phpinfo(); ?>
This should outputs information about PHP's configuration. If you can see this, so the problem is in your code in index.php.
I'm using Debian 7 Wheezy with latest updates installed, including those from dotdeb-PHP repo. So PHP 5.5.8 is present.
I've installed eqDKP-plus (eqdkp-plus.eu) on my webserver. PHP is embedded through mod_fcgid in Apache.
Since 2 days everytime I visit any site of eqdkp I get response Code 500.
Following log-entries:
[Mon Jan 13 17:03:43 2014] [warn] [client xxxxxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Jan 13 17:03:43 2014] [error] [client xxxxxx] Premature end of script headers: viewnews.php
[Mon Jan 13 17:07:46 2014] [error] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(16094) exit(communication error), get signal 11, possible coredump generated
Do you guys have any ideas on how solve this problem? In the last few days/weeks I didn't change anything on my server, so this makes no sense to me.
I can't get APC to work on Windows because Apache keeps crashing as soon as I run a php file. Is this issue know and is there a workaround?
Versions:
Apache 2.2.14
PHP 3.1
APC 3.1.3
The best route to solve this type of problem is to check your Apache log files and see what issues were raised. An example of these logs follows:
[Wed Jun 03 06:07:47 2009] [alert] [client 127.0.0.1] C:/wamp/www/WebsiteA/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Jun 03 06:08:16 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/kohana, referer: http://localhost/WebsiteB/website/