Apache :: FastCGI Output Displayed Is Not HTML
May 21, 2013
I am using Apache 2.4.1 (Win64), PHP 5.3.10 on Microsoft Windows 2008 server. I have also installed Microsoft VC++ 2010 (64 bit). I successfully configured mod_fcgid 2.3.7 as per the instructions. This was confirmed by running info php page. But when I run FastCGI test scripts, the output is displayed in text form and not in html format.
View 1 Replies
ADVERTISEMENT
Feb 17, 2015
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)...
View 1 Replies
View Related
Dec 20, 2013
I have upgraded to Apache 2.4 and Php 5.5.7. I am not able to get any php script to show output in the browser. Html and text files work fine.
phpinfo works fine and shows output.
Phpmyadmin gives "No data received" in chrome and "The connection was reset" in Firefox.
In command line php -f filename gives me output.
Last lines of my Apache error log:
[mpm_winnt:notice] [pid 2028:tid 376] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Fri Dec 20 2013] [core:notice] [pid 2028:tid 376] AH00094: Command line: 'C:Program FilesApache Software FoundationApache24binhttpd.exe -d C:/Program Files/Apache Software Foundation/Apache24'
[Fri Dec 20 2013] [mpm_winnt:notice] [pid 2028:tid 376] AH00418: Parent: Created child process 2628
[Fri Dec 20 2013] [mpm_winnt:notice] [pid 2628:tid 276] AH00354: Child: Starting 64 worker threads.
In Php log it is giving no error.
httpd -t shows: Syntax ok
php -v shows:
PHP 5.5.7 (cli) (built: Dec 11 2013 13:48:27)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
View 2 Replies
View Related
Jun 13, 2013
I get this error sometimes in the apache log for my site (and then my server gets slower and slower until it goes offline):
Code:
[Thu Jun 13 11:58:48.675867 2013] [core:error] [pid 1368:tid 2344] [client 111.222.333.444:38360] End of script output before headers: index.php
I am using a Windows Server 2012 64 bit server, but I had the error on a Windows Server 2008 64 bit server too.
The new server only has 1 site on it - and it is a Joomla 2.5 site. The server is dedicated and has 8 CPU cores and 24 GB ram and so on.
I have googled the error enough to understand that my Apache server (downloaded from this site) is misconfigured somewhere.
View 2 Replies
View Related
May 22, 2014
Should I enable output buffering and zlib compression in PHP configuration editor to increase performance?
In global php.ini I have:
output_buffering = Off
;output_handler =
zlib.output_compression = Off
;zlib.output_handler =
View 1 Replies
View Related
Jan 6, 2008
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
View 3 Replies
View Related
Dec 17, 2008
I have just switched from mod_php to fastcgi + suexec, but now trying to use the ab command times out :
ab -n 10000 -c 100 [url]
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, [url]
Copyright 2006 The Apache Software Foundation, [url]
Benchmarking www.example.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
apr_poll: The timeout specified has expired (70007)
Total of 7422 requests completed
Then I get a bunch of emails from LFD ....
View 0 Replies
View Related
Jan 22, 2007
I have a server running Apache 2 with PHP as an Apache module. There are a few php scripts that use lots of cpu when they run and have lots of hits, but Apache is still running fine and pages and php scripts load pretty fast. I was just wondering if running PHP as fastcgi would use less cpu or make php scripts load faster.
View 0 Replies
View Related
Oct 3, 2007
I currently have a web site with an index.html file inside the Document Root. I also have the noindex.html inside the /var/www/error directory. From time to time for some reason the noindex.html shows when going to the web site even if I have the index.html file inside the Root Document.
View 5 Replies
View Related
Mar 18, 2014
On a newly installed 2.4 on a fresh Gentoo, I created the following test index.html file
View 3 Replies
View Related
May 11, 2008
How to modify add some html code (such as banner, header, footer) to every webpage? without modify original files.
Under <body> or above </html> tags.
Something like search and replace.
View 5 Replies
View Related
Jan 10, 2007
My webserver treat ALL files with html tags inside as html files, e.g. text files or EVEN files without extension.
How to only allow .htm, .html files?
I've deactivated temporary mime magic, I also tried with some RemoveHandler, AddType lines but nothing
View 9 Replies
View Related
Jan 11, 2015
i have made my all pages with .html extension and hence my SEO is based on accordingly. Now i made some changes to htaccess that causes to not inclusion of header and footer pages (both are made with .php extension ). so i decided to change the extension of pages (.html to .php) and it wokrs. due to SEO and large number of pages i want all my pages .php (made later). to get converted automatically with .html in browser. so is it possible using .htaccess rewrite.
View 1 Replies
View Related
Sep 12, 2007
I have an oddball problem here that I haven't seen.
When you visit domain.com, characters are displayed like the files are not being properly read. However, when you visit domain.com/index.php all works fine. I thought this would be an .htaccess issue and tried simply removing it, but this doesn't fix the issue. I checked httpd.conf and all looks fine there too.
View 14 Replies
View Related
Feb 18, 2008
I am having a win 2003 server with a static ip and i have hosted 2 web sites in the iis server but no images are been displayed is it something to do with the designing of the site or some problem in my hosting,
View 4 Replies
View Related
Jul 14, 2007
Recently installed apache + php and such a move over this large site.
However any files that end with the .rar extension are shown in the browser instead of being displayed as a download.
Is there something i need to add to apache to force it to make .rar files be downloaded instead of displayed in the browser as jumbled text and symbols.
*I think im just have a memory block and can't remember how i have fixed this before*
View 1 Replies
View Related
Jun 13, 2009
I have a server with serverboost.nl and my site is not reachable via some networks. We have done a both way tracert and it fails after few steps. I am not sure how many networks give this error but I have already received few complaints from regular visitors to the site.
1. Who/ what networks should I contact to resolve this issue? I ave already asked ServerBoost.nl and they said TRACERT fails at Cogent network.
2.Cogent replied saying the following
"Thank you for the trace example. What you were seeing was the 1st and last hop on the Cogent network mpd01.iad01. The very next hop then transfers over to the Savvis network. I have completed a successfully trace to the destination.
mpd01.iad01#trace
Target IP address: "MySiteIP"
Tracing the route to "MySiteIP"
1 savvis.iad01.atlas.cogentco.com (154.54.12.26) 0 msec <----- 1st hop of Savvis's network
ber1-ge-7-43.virginiaequinix.savvis.net (208.173.10.181) 0msec
ber1-ge-7-39.virginiaequinix.savvis.net (208.173.52.105) 0msec
2 cr1-tengig0-7-2-0.washington.savvis.net (204.70.197.242) [AS 3561] 0 msec 4 msec 0 msec
3 dcr2-so-0-0-0.amsterdamamx.savvis.net (204.70.194.122) [AS 3561] 96 msec 96 msec 100 msec
4 acr2-so-0-0-0.Amsterdamamx.savvis.net (204.70.193.149) [AS 3561] 96 msec 96 msec 96 msec
5 so-0-1-0.br3.ams.we-dare.net (208.174.49.170) [AS 3561] 100 msec 100 msec 96 msec
6 ge-1-1-0.br1.ams.we-dare.net (84.244.188.249) [AS 20495] 96 msec 96 msec 96 msec
7 ge-1-1-0.cr1.rtd.we-dare.net (217.148.164.3) [AS 20495] 100 msec 104 msec 104 msec
8 "MySiteIP" 100 msec 100 msec 96 msec
mpd01.iad01#
Thank you,
Kenneth Abernethy
Customer Support Engineer"
3. TRACERT from Visitor to My Site and vise versa
Tracing route to MySite.com ["MySiteIP"] (from client IP "ClientIP")
over a maximum of 30 hops:
1 1 ms 1 ms 2 ms 192.168.1.1
2 9 ms 9 ms 9 ms 10.35.180.1
3 10 ms 7 ms 10 ms vl-201.gw03.ktgc.phub.net.cable.rogers.com [66.185.90.49]
4 22 ms 7 ms 7 ms gi-3-0.gw01.ktgc.phub.net.cable.rogers.com [66.185.81.121]
5 15 ms 13 ms 14 ms 64.71.241.93
6 25 ms 27 ms 27 ms 69.63.248.42
7 46 ms 74 ms 179 ms te1-5.mpd01.iad01.atlas.cogentco.com [154.54.12.89]
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 * * * Request timed out.
30 * * * Request timed out.
Trace complete.
Tracert from server [MySiteIP] to client [ClientIP]
==============================
/root$ tracert "VisitorIP"
traceroute to "VisitorIP" ("VisitorIP"), 30 hops max, 40 byte packets
1 213.163.91.1 (213.163.91.1) 0.559 ms 0.833 ms 1.117 ms
2 10ge-3-1-0.br1.ams.we-dare.net (217.148.164.1) 1.353 ms 1.356 ms 1.507 ms
3 ge-0-3-0.br3.ams.we-dare.net (84.244.188.250) 1.749 ms 1.761 ms 1.840 ms
4 acr2-so-5-0-0.amsterdamamx.savvis.net (208.174.49.169) 1.744 ms 1.750 ms 1.827 ms
5 acr1-so-6-0-0.amsterdamamx.savvis.net (204.70.192.157) 1.732 ms 1.814 ms 1.938 ms
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
View 2 Replies
View Related
May 3, 2007
I just finished installing a new webserver :
debian 4 , 2.6.18-4-686 , PHP Version 4.4.4-8+etch2 , Apache 2.0
Everything is working fine, except that a lot of excotic letters and symbols on the site are not displayed correctly. Most of the special letters in Swedish, Russian or Polish are replaced by a '?' or a small square. It is a serverside problem, as the same texts are displayed correctly on another, older webserver.
I assume it has something to do with a character set or font that I need to install. But I don't know the exact name of this option, so searching on google doesnt give much relevant results.
View 1 Replies
View Related
Jan 17, 2015
Adding simple subdomain in plesk panel hosted on windows 2012, but browsing the subdomain returning:
This page can’t be displayed....
View 4 Replies
View Related
Dec 2, 2014
I have a Plesk 11.5 server that someone made changes to in IIS to allow web site users to turn the sending of detailed error messages on and off from a web.config file. Unfortunately now none of the sites will send detailed error messages to the browser no matter what is done. The person that made the changes to IIS did not document them properly and cannot tell me what exactly they changed. None of the obvious settings have made an effect on the problem.
View 1 Replies
View Related
Apr 17, 2014
I have this error.
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
[Code] ....
View 1 Replies
View Related
Apr 27, 2008
Quote:
# If a PT_LOAD event is triggered, then if the following contains the path to
# a script, it will be run in a child process. For example, the script could
# contain commands to terminate and restart httpd, php, exim, etc incase of
# looping processes. The action script must have the execute bit an
# interpreter (shebang) set
It's a feature of CSF, how to write a script that will output the contents of top -c to another file?
View 3 Replies
View Related
Nov 17, 2008
Would any remote configs responsible for the warning "header output already sent"?
Why i ask this? Because I am programming with php, having this chronicle error, tried fixing every corners but helpless.
View 4 Replies
View Related
Feb 10, 2007
This is the command i'm running and its options:
tcpdump > output.file
Problem is that the only way to stop this command is pressing CTRL + C, and i just need some option to specify how much time the tcpdump will be running, i need it running for 1 minute for example, and then it should automatically stop.
View 1 Replies
View Related
Sep 12, 2007
how do i get all the current dns values for a domain name? i have tried using
'dig domain any' and get varied results. the first time it is as if i ran 'dig domain a' I then run 'dig domain mx' and see the mx records. an issue of 'any' then shows the mx records so far i have to run dig with every record type. what is another way to get all the dns values for a domain name?
View 1 Replies
View Related
Nov 11, 2014
First of all I checked via command line if any software is not installed properly while plesk installation was done on destination server (windows server 2012 R2). All looks fine, please check attached file pleskinstallation.txt
Source plesk version 10.4.4 (windows server 2008)
Destination plesk version 12.0.18 MU#23 built.
We are in testing mode of migrating websites hosted with source plesk version 10.4.4 onto destination server plesk server 12.0.18 having (windows server 2012 R2).
What we did, we restored the backup of Source plesk version 10.4.4 (windows server 2008) to Destination plesk version 12.0.18 MU#23 built.
Now the problem is that backup which we restored on Destination plesk version 12.0.18 MU#23 was of 68 GB and now when we setup the backup on Destination plesk version 12.0.18 MU#23 and when backup completes successfully it show us wrong backup size up to 16 GB.
We have requested several times to plesk support has to check the entire new plesk version in terms of all feature (like taking backup, restoring, plesk installation etc) while releasing new version, If they have noticed bug than plesk support should not release new version or micro update until they are sure.
I would request them again to check backup size bug along with other bugs.
1. "Stats crashing and not updating stats"
2. installing "Spam assassin" on Plesk 12.0.18 on windows server 2012 r2 and we are getting error:
Error: Unable to set Plesk SpamAssassin 3.3.2 as the default Spam Filter: defpackagemng failed: Execute spammng.exe --check failed with error code 1: Unable generate the unique file name by template D:Program Files (x86)ParallelsPleskAdditionalPerlsiteetcmailspamassassinlocal.cf[*].bak: directory D:Program Files (x86)ParallelsPleskAdditionalPerlsiteetcmailspamassassin does not exist.
View 1 Replies
View Related
Sep 26, 2008
I have question regarding the output of top command when it is run inside a VPS.
Does the CPU load (under lined in red) only belongs to my VPS or the whole server?
If it belongs to the whole server, then is the load underlined in green, the load my VPS currently has?
[url]
its a Virtuozzo based VPS
View 3 Replies
View Related
Apr 4, 2008
What command could I use to get the last line of an output?
Heres why...
I use this command:
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
I would like to get just the last line of the output, the output looks like this:
1 203.118.105.*
1 80.195.165.*
1 87.211.51.*
1 91.40.90.*
8 82.2.222.*
213
The reason is because I'd like to get that last figure to place into a file on a certain time period (through a cron), which will then be graphed with PHP.
View 3 Replies
View Related