note 73258 added to install.unix.apache2

From: Date: Thu, 15 Feb 2007 00:01:18 +0000
Subject: note 73258 added to install.unix.apache2
Groups: php.notes 
Request: Send a blank email to php-notes+get-123394@lists.php.net to get a copy of this message
If you just can't get Apache 2.2, PHP 4 or 5 on Linux to work together: (in my case Debian Sarge or FC6 ) read this: http://www.devside.net/articles/php Even though its aimed at windows the rule is the same for Linux. Note: php.net and the default configuration in both FC6 and Debian were wrong for me. Maybe I screwed something up in httpd.conf. Maybe everybody already knows this, I dunno... Even though apache was loading the php5 module, I edited the httpd.conf file and "php index.php" issued at the command line produced good html, I still got a 500 error: "(8)Exec format error: exec of '/var/www/mydir/index.php' failed" adding this to httpd.conf fixed the problem: <IfModule php5_module> #PHPIniDir "/etc" <Location /> AddType text/html .php .phps AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php-source .phps </Location> </IfModule> HTH John ---- Server IP: 69.147.83.197 Probable Submitter: 208.1.239.209 ---- Manual Page -- http://www.php.net/manual/en/install.unix.apache2.php Edit -- https://master.php.net/note/edit/73258 Del: integrated -- https://master.php.net/note/delete/73258/integrated Del: useless -- https://master.php.net/note/delete/73258/useless Del: bad code -- https://master.php.net/note/delete/73258/bad+code Del: spam -- https://master.php.net/note/delete/73258/spam Del: non-english -- https://master.php.net/note/delete/73258/non-english Del: in docs -- https://master.php.net/note/delete/73258/in+docs Del: other reasons-- https://master.php.net/note/delete/73258 Reject -- https://master.php.net/note/reject/73258 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123394) next »