  PToN
join:2001-10-04 Houston, TX
| Apache+PHP logging..?
Hello,
i have a webserver that hosts a few virtual servers for different web apps we have in place. I am getting an error on screen about unable to find class "my_class.php"
I checked: /var/log/apache2/my_app-error_log File does not exist: /srv/www/vhosts/training/favicon.ico /var/log/messages/ nothing related to apache.
Since i am using virtual hosts i check my file and it looks like this:
All the other apps have logged errors to their respective log file whenever an error is encountered.
I dont know where else to look...
Any ideas...?
Thanks |
|
  yock TFTC Premium join:2000-11-21 Fairfield, OH
| Apache is probably not going to log an error if the file itself is in-tact and it has sufficient permissions to access it. If the file itself is syntactically malformed, that might still render PHP unable to parse it, thus producing the error.
Try cranking the log level up to see if you can get any informational messages.
»httpd.apache.org/docs/2.0/mod/co···loglevel -- Have more fun with your GPS. Geocaching.com |
|
  PToN
join:2001-10-04 Houston, TX
| nope, didnt work.. I did see more details on the activity by setting it to "debug", but no errors related to the PHP part...
I tried to execute a function that didnt exist in the controller and the 404 error, but nothing was entered in the logs...
The last PHP error logged was:
But now that i am trying to execute functions that do not exist in the controller and even non-existent controllers, i see nothing entered in the logs...
all the PHP apps have "error_reporting(E_ALL);" (for the moment)
Any ideas...?
Thanks |
|
  twizlar I dont think so. Premium join:2003-12-24 Brantford, ON
1 edit | reply to PToN Did you enable logging in the Code Igniter config file? If it is, check the system/logs folder.
It sounds like you are calling a class incorrectly somewhere in your application, there shouldn't really be a my_class "class" -- Broadline Networks Inc. |
|
  PToN
join:2001-10-04 Houston, TX
| it works on the development server... They both have the same PHP version and same CI version...
Yes, config file has logs set to 4 which is "log all messages", but system/logs has nothing in it..
php info:
how writeable should the system/logs folder be..? only to the wwwrun user since it runs apache right..? |
|
  benyto Premium join:2000-07-09 Chico, CA
| Are you looking in the file /var/log/apache2/php_errors.log for any errors? You have PHP configured to log errors to that file. Earlier posts indicated you were looking for PHP errors in files other than that one. Also, does your application have its own error reporting/error logging?
The file where PHP writes its logs needs to be writable by the user the web server is running as if PHP is running as a module. |
|
  PToN
join:2001-10-04 Houston, TX
| reply to PToN hahaha...
Well my class files are VG_whatever_library.php and apparently the call must be load->library(VG_myclass) i had load->library(vg_myclass). For some odd reason it worked on the dev server and not in the production server...
Thanks all... |
|
  yock TFTC Premium join:2000-11-21 Fairfield, OH | Different OS? |
|
  PToN
join:2001-10-04 Houston, TX | yeah.. i should have thought about that..
Dev server is OS X Production is SuSE Ent. |
|