On Wed, February 15, 2006 10:43 pm, Paul Goepfert wrote: > I have been developing a php website. I have been ftping my php web > pages to a webserver and that works hkowever I don't have an error log > on the webserver.
If you want Apache error logs, you can just configure Apache to generate them and put them where you want them... They usually end up in /var/log/httpd/error.log (or somesuch) by default, though with older Apache from source maybe in /usr/local/lib/apache/logs/error or similar. It's quite likely that you HAVE error logs, but just don't know where they are :-) locate error_log might find them for you. If the error logging was turned "off" in Apache config, you want to find your "httpd.conf" file: locate httpd.conf and turn it back on. Installing a whole new Apache to turn on error logging is like buying a new car because the cigarette lighter is missing... > So I downloaded apache 2.0.55. I am doing a > manual installation and I am at the point where it tells me where to > place the php.ini file. The instructions tell me to put the file in a > number of places. The directions told me that if I were using apache > to use the PHPIniDir directive. My question is where do I put the > php.ini file? Where do I put this Directive? In the Httpd.conf? php.ini traditionally went in /usr/local/lib/php.ini Many OS-installed distros (RPMs et al) put it in place like: /etc/php.ini /usr/local/etc/php.ini locate php.ini might be instructive. You can put php.ini anyplace you like ; You just have to convince Apache+PHP where to find it. PHPIniDir directive in Apache 2.0 simplifies this. PHPIniDir would need to go in httpd.conf file. All these "locate xyz" things assume you can SSH (telnet?!) in to your server... If you ONLY have FTP access, then it is unlikely to be useful... It is equally unlikely, with only FTP access, that you'll be able to successfully install a new Apache anyway, much less get it to run (you'd have to have root access). Some webhosts, for reasons beyond my ken, do not provide log files unless you specifically ask for them, but will do it if you ask. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php