PHP error log not working WAMP 2.1 on Windows 7
Posted by: codeartist (---.bluebird.ibm.com)
Date: April 03, 2014 07:27PM

I am Trying to edit the PHP.INI file So THAT the PHP error log shows errors. When I uncomment the line in the INI file and save it, the Service Will not start. The line I want to uncomment is: ; error_log = "c :/ wamp / logs / php_error.log" The file already exists in this directory. How can I get logging of PHP errors to work?

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: RiggsFolly (---.as13285.net)
Date: April 03, 2014 08:33PM

You must be doing something wrong

The parameter shouidl look like this


error_log = "c:/wamp/logs/php_error.log"

(no spaces around the slash character.


Also you need to check that

display_errors = On

if you want errror to appear on the browser

and

log_errors = On

to get the errors in the error_log file as well

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: codeartist (---.bluebird.ibm.com)
Date: April 03, 2014 09:41PM

Hi, thanks for answering. Both of the above are turned ON. When I uncomment the file through, WAMP won't start up. Where can I look for WAMP startup errors?

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: RiggsFolly (---.as13285.net)
Date: April 03, 2014 10:08PM

Are you sure that you have a c:\wamp\logs folder that actually exists?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: codeartist (---.bluebird.ibm.com)
Date: April 03, 2014 10:17PM

Yes. The folder and the php_error.log file already exist.
How can I tell why WAMP is not able to start when I try to use that file?
thanks

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: RiggsFolly (---.as13285.net)
Date: April 03, 2014 10:20PM

Exactly which file are you editing when you say you are editig the php.ini file.

Please give a full path to the file.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: codeartist (---.bluebird.ibm.com)
Date: April 04, 2014 01:53PM

The location of my PHP.ini file is as follows:

C:\wamp\bin\apache\Apache2.2.17\bin\php.ini

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: RiggsFolly (---.as13285.net)
Date: April 04, 2014 02:29PM

Install TeamViewer and I will troubleshoot for you.

Install TV, then run it.

Send me a Private Message containing the TV ID and PASSWORD so I can connect.
Leave TV running as it will change the password each time you restart it.

I have a meeting right now, but will be back within an hour. Back at 14:30 or before UK time

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: PHP error log not working WAMP 2.1 on Windows 7
Posted by: codeartist (---.bluebird.ibm.com)
Date: April 04, 2014 04:09PM

OK, thanks for your help today.
Log is now working.
Fix was to put extension=php_mbstring.dll before other extensions as this was causing an erro in Apache startup.

Also removed the ZIP extension as it is part of the core PHP in this version.

Sorry, only registered users may post in this forum.