[PHP] Please Help with simple Noob problem
Hello all. I seem to be having a terrible tim ewith something that is so simple it makes me sick. I have a server running FC2. it has Apache 2.x.x on it and it came installed with php-4.x.x. Sorry I don't have the exact versions but fatigue and frustration has taken over. I can get them if you really need them. Here's the major problem. When I try and view a simple php page in the browser, it doesn't display anything that has to do with the php tags. By that I mean it won't recognize the php directives (I guess). I made a simple page (the infamous phpinfo () page) right out of the books. Saved it as test.php just like it said. Made sure that apache is running and browsed to the page. Nothing, no errors, no nothing. I have made up some other pages (mostly from some php books - real simple ones) to view and they all display the same action. Now when these machines (I actually have a couple of these servers and they all act the same) were installed, it was from FC2 CD's with the webserver full package. There were all kinds of php files installed, etc. In my httpd.conf file it calls the php.ini file, etc. So it seems to be all there. Can anyone out there help me figure out how to make this work? I would be truly indebted to you, put you on my Christmas card list, etc. Thanks in advance to all of you kind and wonderful people. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
Jochem Maas wrote: Scott Bounds wrote: Hello all. I seem to be having a terrible tim ewith something that is so simple it makes me sick. I have a server running FC2. it has Apache 2.x.x on it and it came installed with php-4.x.x. Sorry I don't have the exact versions but fatigue and frustration has taken over. I can get them if you really need them. Here's the major problem. When I try and view a simple php page in the browser, it doesn't display anything that has to do with the php tags. By that I mean it won't recognize the php directives (I guess). does that mean your seeing the text '?php phpinfo(); ?' (or similar) in your browser? if so then your apache setup is broken with regard to php - the php apache module is not being loaded or the mapping to .php files is borked (or non-existent). I made a simple page (the infamous phpinfo () page) right out of the books. Saved it as test.php just like it said. Made sure that apache is running and browsed to the page. Nothing, no errors, no nothing. I have made up some other pages (mostly from some php books - real simple ones) to view and they all display the same action. Now when these machines (I actually have a couple of these servers and they all act the same) were installed, it was from FC2 CD's with the webserver full package. There were all kinds of php files installed, etc. In my httpd.conf file it calls the php.ini file, etc. So it seems to be all there. start by tailing the apache access_log and the apache error_log, a cmdline something like this: tail -f /var/log/apache2/access_log /var/log/apache2/error_log and see what kind of errors appear when you surf to the problem pages. also check for apache start up errors that a related to php. Can anyone out there help me figure out how to make this work? I would be truly indebted to you, put you on my Christmas card list, etc. please don't waste trees. Thanks in advance to all of you kind and wonderful people. Scott Well, actually I don't see anything. Nothing at all (in the case of the phpinfo() page. All the page has in it is just ?php phpinfo() ?. It was saved as test.php. How can I tell if something is broken and where do I look for the files? I haven't done any dorking around with the links, etc. Just done the complete install, etc. Then wanted to play around with things to to get the feel of everything. And I get nothing. Thanks! Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
Scott Bounds wrote: Jochem Maas wrote: Scott Bounds wrote: Hello all. I seem to be having a terrible tim ewith something that is so simple it makes me sick. I have a server running FC2. it has Apache 2.x.x on it and it came installed with php-4.x.x. Sorry I don't have the exact versions but fatigue and frustration has taken over. I can get them if you really need them. Here's the major problem. When I try and view a simple php page in the browser, it doesn't display anything that has to do with the php tags. By that I mean it won't recognize the php directives (I guess). does that mean your seeing the text '?php phpinfo(); ?' (or similar) in your browser? if so then your apache setup is broken with regard to php - the php apache module is not being loaded or the mapping to .php files is borked (or non-existent). I made a simple page (the infamous phpinfo () page) right out of the books. Saved it as test.php just like it said. Made sure that apache is running and browsed to the page. Nothing, no errors, no nothing. I have made up some other pages (mostly from some php books - real simple ones) to view and they all display the same action. Now when these machines (I actually have a couple of these servers and they all act the same) were installed, it was from FC2 CD's with the webserver full package. There were all kinds of php files installed, etc. In my httpd.conf file it calls the php.ini file, etc. So it seems to be all there. start by tailing the apache access_log and the apache error_log, a cmdline something like this: tail -f /var/log/apache2/access_log /var/log/apache2/error_log and see what kind of errors appear when you surf to the problem pages. also check for apache start up errors that a related to php. Can anyone out there help me figure out how to make this work? I would be truly indebted to you, put you on my Christmas card list, etc. please don't waste trees. Thanks in advance to all of you kind and wonderful people. Scott Well, actually I don't see anything. Nothing at all (in the case of the phpinfo() page. All the page has in it is just ?php phpinfo() ?. It was saved as test.php. How can I tell if something is broken and where do I look for the files? I haven't done any dorking around with the links, etc. Just done the complete install, etc. Then wanted to play around with things to to get the feel of everything. And I get nothing. Thanks! Scott When I tailed the access_log and surfed to the file I got nothing. When I tailed the error_log, I got the following: [EMAIL PROTECTED] httpd]# tail -f error_log [Thu Jan 11 08:57:12 2007] [error] jk2_init() Can't find child 14360 in scoreboard [Thu Jan 11 08:57:12 2007] [notice] workerEnv.init() ok /etc/httpd/conf/workers2.properties [Thu Jan 11 08:57:12 2007] [error] mod_jk child init 1 -2 [Thu Jan 11 08:57:12 2007] [error] jk2_init() Can't find child 14361 in scoreboard [Thu Jan 11 08:57:12 2007] [notice] workerEnv.init() ok /etc/httpd/conf/workers2.properties [Thu Jan 11 08:57:12 2007] [error] mod_jk child init 1 -2 [Thu Jan 11 08:57:12 2007] [error] jk2_init() Can't find child 14362 in scoreboard [Thu Jan 11 08:57:12 2007] [notice] workerEnv.init() ok /etc/httpd/conf/workers2.properties [Thu Jan 11 08:57:12 2007] [error] mod_jk child init 1 -2 [Thu Jan 11 08:57:12 2007] [notice] Apache/2.0.51 (Fedora) configured -- resuming normal operations I have no idea what this is telling me. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
David Giragosian wrote: Well, actually I don't see anything. Nothing at all (in the case of the phpinfo() page. All the page has in it is just ?php phpinfo() ?. It was saved as test.php. How can I tell if something is broken and where do I look for the files? I haven't done any dorking around with the links, etc. Just done the complete install, etc. Then wanted to play around with things to to get the feel of everything. And I get nothing. Thanks! Scott, Have you restarted the server (or the machine), as Miles has suggested? David Hi David. yes, many times. I'm ready to put it on a crontab to restart it like every minute. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
Dave Goodchild wrote: Why not check php.ini to see whether display_errors is set to off and switch it on until you are back in business? Check the httpd.conf file to make sure Apache is parsing .php files correctly. hi Dave. let me check in the ini file and see. I'll reply as soon as I can determine. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
bruce wrote: hi scott. tell us, have you been able to generate a simple html test page on the server that you can see from your browser. for test purposes (i'm assuming this is your on test server), rename the apache error/access log files. no need to trek through old garbage in the files. when you restart apache, it'll recreate the files. from a short perusal of your posts, i'm of the opinion that something is screwing up apache from running. so let's see if we get apache starting correctly. -lets see is we get a basic test html file to be served -we'll tackle getting php files served... -Original Message- From: Scott Bounds [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 8:30 AM To: php-general@lists.php.net Subject: Re: [PHP] Please Help with simple Noob problem David Giragosian wrote: Well, actually I don't see anything. Nothing at all (in the case of the phpinfo() page. All the page has in it is just ?php phpinfo() ?. It was saved as test.php. How can I tell if something is broken and where do I look for the files? I haven't done any dorking around with the links, etc. Just done the complete install, etc. Then wanted to play around with things to to get the feel of everything. And I get nothing. Thanks! Scott, Have you restarted the server (or the machine), as Miles has suggested? David Hi David. yes, many times. I'm ready to put it on a crontab to restart it like every minute. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Bruce. I created a simple test.html page and had the following in the page: font color=redThis is a test page to see if the html is working/font The page did present with the text in red. I then checked the error_log and it had no entries beyond just the startup stuff. it seems that it is doing the html just fine. I do have a production server running (same configuration) and it presents html pages just fine. Just no php pages. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Please Help with simple Noob problem (Problem Solved)
Scott Bounds wrote: Hello all. I seem to be having a terrible tim ewith something that is so simple it makes me sick. I have a server running FC2. it has Apache 2.x.x on it and it came installed with php-4.x.x. Sorry I don't have the exact versions but fatigue and frustration has taken over. I can get them if you really need them. Here's the major problem. When I try and view a simple php page in the browser, it doesn't display anything that has to do with the php tags. By that I mean it won't recognize the php directives (I guess). I made a simple page (the infamous phpinfo () page) right out of the books. Saved it as test.php just like it said. Made sure that apache is running and browsed to the page. Nothing, no errors, no nothing. I have made up some other pages (mostly from some php books - real simple ones) to view and they all display the same action. Now when these machines (I actually have a couple of these servers and they all act the same) were installed, it was from FC2 CD's with the webserver full package. There were all kinds of php files installed, etc. In my httpd.conf file it calls the php.ini file, etc. So it seems to be all there. Can anyone out there help me figure out how to make this work? I would be truly indebted to you, put you on my Christmas card list, etc. Thanks in advance to all of you kind and wonderful people. Scott Thanks everyone for your help. I got a reply from Janet who informed me that I couldn't access the page from File/Open/test.php. I actually had to do the http://localhost/test.php for the browser to present the php. it presented correctly then. I am sorry, but I am a noob here. Thanks for all of your wonderful help. I apologize for not being more experienced. I should have known this. But there is a bright spot: I won't ever forget this point! Thanks again! Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
Arno, you nailed it right on the head. You and someone else told me that. I am glad that you did because that is exactly what the problem was. Thanks for being patient and understanding. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please Help with simple Noob problem
Bruce, thanks fro your help but I found out what stupid noob thing I was doing. I had been doing the File/Open File/test.php Janet had gotten to me and do http://localhost/test.php. Big world of difference. trying to learn why but that made all the difference. Worked great then. Thanks for your help. Signed, The really, really noob Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php