Re: [PHP] I rest my case
Hello Warwick, You're correct in assuming that Apache isn't set up right. It needs to be set to parse the .php files. Here's how to do this: Locate httpd.conf (/usr/local/apache/conf/httpd.conf for my compile). And uncomment/add these lines: AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps That tells apache to parse .php and .php3 files. The .phps files will show the syntax highlighted version of the code. Good luck, Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 31 Oct 2001 17:22:47 +1300 J W W L (Warwick) Berg [EMAIL PROTECTED] wrote: Hi all Sorry about what is probably a total dickhead about to enter your midst, but I've never installed php or seen it much at all before but am trying to do it now. Using RH 7.1 and Apache 1.3.19 Want to install php4 and mysql combo and totally ignorant. Installed php rpm. Restarted apache in case that was needed. made hello.php and pointed browser at it. Got the text, rather than executing it. Can I surmise that apache isn't set up properly, and if so, could someone please point me towards relevant assistance. Got really confused with the manual, etc. Not that bright I suppose ;-) Thanks in advance Warwick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- +--+ | Tyler Longren | | Captain Jack Communications | |[EMAIL PROTECTED] | | www.captainjack.com | +--+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I rest my case
On Wed, 31 Oct 2001 14:52, J W W L (Warwick) Berg wrote: Hi all Sorry about what is probably a total dickhead about to enter your midst, but I've never installed php or seen it much at all before but am trying to do it now. Using RH 7.1 and Apache 1.3.19 Want to install php4 and mysql combo and totally ignorant. Installed php rpm. Restarted apache in case that was needed. made hello.php and pointed browser at it. Got the text, rather than executing it. Can I surmise that apache isn't set up properly, and if so, could someone please point me towards relevant assistance. Got really confused with the manual, etc. Not that bright I suppose ;-) Thanks in advance Warwick Caveat - I have absolutely no experience with Dead Rat. However, your problem #1 sounds like an Apache configuration thing - to run php under apache you need at least some sort of addtype entry in your httpd.conf. I use: # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # For PHP 4.x, use: AddType application/x-httpd-php .php .php3 .html which tells apache to use php to parse files with extensions listed. I don't know whether the redhat apache rpm uses DSO or not - ther may be problems there also. But check for the addtype entry first - and remember to 'apachectl graceful' to force a reread of the conf file if you change anything in it. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Useless Invention: Screen door on a submarine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]