Todd Geist Posted June 12, 2009 Posted June 12, 2009 Does anybody know how to get error logging with the Filemaker installed PHP to work? I am having zero luck Todd
jonathanstark Posted June 14, 2009 Posted June 14, 2009 Hi T - Are you talking about PHP errors or FM errors? Best, j
Todd Geist Posted June 15, 2009 Author Posted June 15, 2009 PHP Errors. I got it working. You have to modify the php.ini file, to get it to output errors to a text file.
jonathanstark Posted June 15, 2009 Posted June 15, 2009 Glad to hear it. For the record, you can add the following line to the top of you php file to output errors to the browser during development: ini_set('display_errors', TRUE); Best, j
Todd Geist Posted June 15, 2009 Author Posted June 15, 2009 No I wasn't making myself clear. What I wanted was a way to see log the errors, not just display them. I assumed (incorrectly it turns out) that php errors would appear in the event viewer. I discovered that the relevant php.ini directive is set by default to NOT log any errors either in the event viewer or a text file. According to the research I did, it is actually a bit of apin to log php errors to the event viewer as it involves loosening the permissions of the default internet user. So I opted for a text file. Once I set the php.ini directive "log_errors" to log errors to the text file, I was able to see the errors accumulate in the log. Todd
jonathanstark Posted June 16, 2009 Posted June 16, 2009 Well, I don't know squat about IIS but on Apache, PHP errors are logged to the Apache error log by default (but you prolly already knew that). On my machine: /private/var/log/apache2/error_log You prolly also already saw this in the docs, but just in case: Using the web server access and error logs 1 IIS (Windows) The Microsoft IIS web server generates an access log file and displays errors in the Windows Event Viewer instead of writing them to a log file. The access log file, which is in the W3C Extended Log File Format by default, is a record of all incoming HTTP requests to the web server. You can also use the W3C Common Logfile Format for the access log. For more information, see the documentation for the Microsoft IIS web server. Using the Web Publishing Engine application log By default, the Web Publishing Engine generates an application log file that contains a record of Web Publishing Engine error, script, and user log information. The log file is named pe_application_log.txt, and is located on the Web Publishing Engine component of the FileMaker Server deployment: 1 IIS (Windows): :Program FilesFileMakerFileMaker ServerLogspe_application_log.txt
Recommended Posts
This topic is 5896 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now