I made .htaccsess for include path and i set in it
php_value include_path ".;c:\xampp\php\PEAR;c:\xampp\htdocs\shop\shop\inc";
there is just top line(htaccess)
my project is in locall
and my include file is in directory: c:\xampp\htdocs\shop\shop\inc
but when i use function or classess in my include directory i get This Error:
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9
in error.log apache is
[Sun Oct 19 17:07:08.037451 2014] [core:alert] [pid 2228:tid 1676] [client ::1:52965] C:/xampp/htdocs/shop/shop/.htaccess: php_value takes two arguments, PHP Value Modifier
[Sun Oct 19 17:07:09.559628 2014] [core:alert] [pid 2228:tid 1676] [client ::1:52966] C:/xampp/htdocs/shop/shop/.htaccess: php_value takes two arguments, PHP Value Modifier
php_value include_path ".;c:/xampp/php/PEAR;c:/xampp/htdocs/shop/shop/inc"
Try it with forward slashes and without the semicolon at the end.
Also retype the spaces to make sure you've not introduced some non ascii character into the string.
Related
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 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.
I've a script which send just a lot of data in json format
by post.
Up to about 10Mb (data are put into a flat file) of data the script works great but
if the load is higher I get from apache 500 Internal Server Error.
I peeped into apache log file I get
[Wed Jan 19 17:26:41 2011] [error] [client ip] Premature end of script headers: index.php
[Wed Jan 19 17:26:41 2011] [debug] mod_deflate.c(615): [client ip] Zlib: Compressed 632 to 385 : URL /index.php
Do you have any idea about it ?
Bye.
Premature end of script headers
This message means the PHP script died before outputing any content-type to apache. If you have ob_* functions activated it could be any error on your PHP script, or a timeout, check your set-time-limit parameter in PHP for timeouts.
Check as well that your exception handling output the correct content type if you want to output an error message.
To check all parameters that can have an impact you must check the timeout parameters and the size limits ones. Here are some of them:
Apache:
LimitRequestBody
PHP:
post_max_size
upload_max_filesize
max_input_time
max_execution_time
and maybe memory_limit as well
If this is not posted in correct place, please migrate it
I kept a .htaccess file in my public_html folder inside the root. When I view the website it is giving server misconfiguration error.
my .htaccess file contains this only
php_value upload_max_filesize 100M
php_value post_max_size 100M
I wonder what may be wrong. Any Ideas
MY ERROR LOG
[Mon Jun 07 17:06:23 2010] [alert] [client 113.199.221.198] /home/wwwcomr/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
[Mon Jun 07 17:04:46 2010] [alert] [client 113.199.221.198] /home/wwwcomr/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
What Col. Shrapnel says: The error log is the only place to get reliable information.
Re your update:
PHP needs to be running as an Apache module for php_value to work. Source
See web-server's error_log for the details.
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/