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/
Related
My developer team at General Motors has no PHP experience but we have to help with a Drupal/PHP site that went down. I took the 10 lines from the error logs that look important. Could anyone help us understand what's happening from these 10 lines? Any help is appreciated.
PHP Warning: Module 'hash' already loaded in Unknown on line 0
[Sun Jul 23 11:30:04 2017] [notice] Apache/2.2.12 (Linux/SUSE) mod_ssl/2.2.12 OpenSSL/0.9.8j-fips configured -- resuming normal operations
[Sun Jul 23 11:30:05 2017] [notice] Graceful restart requested, doing restart
PHP Warning: Module 'hash' already loaded in Unknown on line 0
[Sun Jul 23 11:30:05 2017] [notice] Apache/2.2.12 (Linux/SUSE) mod_ssl/2.2.12 OpenSSL/0.9.8j-fips configured -- resuming normal operations
[Sun Jul 23 11:30:39 2017] [error] [client 198.208.85.51] ALERT - possible memory corruption detected - unknown Hashtable destructor (attacker '198.208.85.51', file '/www/theblog/index.php', line 19), referer: https://theblog.com/
[Sun Jul 23 22:18:58 2017] [error] Hostname theblock.com. provided via SNI and hostname theblock.com provided via HTTP are different
[Sun Jul 23 22:18:58 2017] [error] Hostname theblock.com. provided via SNI and hostname theblock.com provided via HTTP are different
[Sun Jul 23 22:59:46 2017] [error] [client 198.208.85.51] PHP Fatal error: Call to a member function getElementsByTagName() on a non-object in /www/theblock/modules/filter/filter.module on line 1123
[Sun Jul 23 23:07:21 2017] [error] [client 198.208.85.51] PHP Fatal error: Call to a member function getElementsByTagName() on a non-object in /www/theblock/modules/filter/filter.module on line 1123
Recollecting what was last done might help to resolve your issue. Since in apache error log the showing issue in filter module, check for latest text format if you have updated. (The failing point is when conversion happens from a DOM object back to an HTML snippet). Also verify if you have installed any new module prior to this failure.(if yes try to disable that module using db)
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'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 have been creating a CakePHP application on my Linux computer and running it using Lampp. Everything has been going well.
I have passed the project to a designer to do some layout updates who is using a Mac and running Mamp.
When he try to run the project he is receiving the following error:
The website encountered an error while retrieving
http://localhost:8888/. It may be down for maintenance or configured
incorrectly. Here are some suggestions: Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was
encountered while the server was attempting to fulfill the request.
Why would this error occur on his Mac but not my Linux?
EDIT:
The Server log is showing the following:
[Sun Sep 04 20:07:50 2011] [error] [client ::1] client denied by
server configuration: /Users/Jamie/Sites/.DS_Store [Sun Sep 04
20:07:52 2011] [error] [client ::1] client denied by server
configuration: /Users/Jamie/Sites/Glecto/.DS_Store, referer:
http://localhost:8888/ [Sun Sep 04 20:15:52 2011] [notice] caught
SIGTERM, shutting down [Sun Sep 04 20:15:55 2011] [notice] Digest:
generating secret for digest authentication ...
I had the same problem recently using MAMP. I copied a plain php site from online to local for testing and the site kept giving me that error when I browsed to it locally. It turned out to be the permissions on the files. I had to go through the files and folders and change the permissions. Hope this helps
cPanel Version 11.28.87
Theme x3
Apache version 1.3.42
PHP version 5.2.13
MySQL version 5.0.92-community
Architecture i686
Operating system linux
I noticed in the Error Log that I was getting the same error repeatedly. A simple missing .gif that was being requested.
[Tue Apr 12 12:12:23 2011] [error] [client --.---.---.---] File does not exist: /public_html/themes/3col_blue/images/dogcat.gif
So I thought well lets just put that .gif (our logo) there...
Now I am getting a whole slew of errors regarding file does not exist that look like this:
[Tue Apr 12 02:27:47 2011] [error] [client --.---.---.---] File does not exist: /home/--------/public_html/index.php+++++++++++++++++++++++++++++++++Result:+\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed+\xed\xe8\xea\xed\xe5\xe9\xec+"reltWeiweessy";+\xe7\xe0\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe8\xf0\xee\xe2\xe0\xeb\xe8\xf1\xfc+(\xe2\xea\xeb\xfe\xf7\xe5\xed+\xf0\xe5\xe6\xe8\xec+\xf2\xee\xeb\xfc\xea\xee+\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8);
[Tue Apr 12 02:27:42 2011] [error] [client --.---.---.---] File does not exist: /home/--------/public_html/index.php+++++++++++++++++++++++++++++++++Result:+\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed+\xed\xe8\xea\xed\xe5\xe9\xec+"reltWeiweessy";+\xe7\xe0\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe8\xf0\xee\xe2\xe0\xeb\xe8\xf1\xfc+(\xe2\xea\xeb\xfe\xf7\xe5\xed+\xf0\xe5\xe6\xe8\xec+\xf2\xee\xeb\xfc\xea\xee+\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8);
how did I make this go from bad to worse?
Are there referers for those particular hits in the access_log? Looks like someone/something is pointing at your site with a badly constructed link.