Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Apache+PHP logging..?
Search Topic:
Uniqs:
526
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
How to make a .wmv download instead of stream? »
« Application Testing Tools From Microsoft - Overview  
AuthorAll Replies


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.
-
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersHow to make a .wmv download instead of stream? »
« Application Testing Tools From Microsoft - Overview  


Thursday, 10-Dec 16:53:16 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [200] Sprint Sued For Distracted Driving Death
· [131] AT&T Launching New 24 Mbps U-Verse Tier
· [85] AT&T Hints At Usage-Based iPhone Data Pricing
· [82] 3G Network Test Says AT&T Is Tops
· [72] Mediacom Unveils 105 Mbps Pricing
· [71] WPA Cracker: Test WPA-PSK Networks In 20 Minutes
· [66] Sprint Poised For A Turnaround?
· [51] The Future Of Wi-Fi Is Bright
· [50] Average American Consumes 34 Gigabytes Daily
· [47] Site Leaks Yahoo, Verizon Fed Data Share Pricing
Most people now reading
· [WIN7] Well, I was dumb, but do I have recourse? [Microsoft Help]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Windows 7 boot manager editing questions [Microsoft Help]
· malware has been found hidden inside an Ubuntu screensaver [Security]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· New Mediacom Email [Mediacom]
· New 5 mans full walk through [World of Warcraft]
· Battered Hilt Delimma [World of Warcraft]
· ICC strats [World of Warcraft]
· Icecrown 5-man strats [World of Warcraft]