RE: [PHP-WIN] apache httpd.conf

From: Date: Wed, 01 Nov 2000 15:16:37 +0000
Subject: RE: [PHP-WIN] apache httpd.conf
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3621@lists.php.net to get a copy of this message
> -----Original Message----- > From: Johannes Janson [mailto:johannes.janson@gmx.de] > Sent: Wednesday, November 01, 2000 2:53 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] apache httpd.conf > > > Hi, > > I'm trying to setup Apache for PHP 4.0.3 on a WIN2000 System. > But as I'm a degenerated Windows users, who only can > double-click an press "continue" if I want to install something I don't > get it working. ... how are you typing this msg ;) > > Apache itself works fine, but when I call a PHP script I get > an "405 Method not allowed"-message. I've set a script alais, but > honestly I haven't got a clue if this changes anything. > Do I have to set a PHP-handler ? You must allow Apache to execute CGI in the directorys ... you must add the ExecCGI in the directory-directive in httpd.conf: <Directory "c:/yourserverroot/htdocs"> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options All AllowOverride All Order allow,deny Allow from all </Directory> ATTENTION: the lines above are LOW-security for developing only!! the second thing is: apache must know which type of application the .php-files are: AddType application/x-httpd-php .php4 .php and then, apache must know what to do with these files: Action application/x-httpd-php /cgi-bin/php4/php.exe > > Thanks in advance > Johannes CodeDuck hope this solves your probs

« previous php.windows (#3621) next »