[PHP] Re: PHP/Apache configuration failure
Bruce A. Julseth [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I can't get Apache to restart after I've configured for PHP. I've upgraded my installation to 5.2. Now, Apache 2.2.3 runs fine without any PHP additions. 1) I added my PHP directory, C:/PHP5, to my PATH 2) I copied php.ini-recommended to my C:/windows directory and renamed it php.ini 3) I made the following changes to PHP.ini doc_root = c:/inetpub/wwwroot extension_dir = c:/php5/ext 4) I made the following changes to Httpd.conf After the last entry in the LoadModule section: LoadModule php5_module c:/php5/php5apache.dll AddModule mod_php5.c NOTE: If I comment out the above two statemens, Apache will start. In the IfModule mime_module Section, I added AddType application/x-httpd-php .php Action application/x-httpd-php /php/php.exe And that's it. When I restart Apache, I get an error dialog with the message: The requested operation has failed. What have I missed or done wrong? Thanks for the help... Bruce Hello Bruce. I think your problem lies in the file name you are using. I use this line and have no problems. LoadModule php5_module c:/Program Files/PHP/php5apache2_2.dll I do not have the AddModule line. I use AddType application/x-httpd-php .php .html. (I want to parse .html files as well.) I do not use the Action line. Try taking out the Addmodule and Action lines. Change the LoadModule line. I forget where I bumped into the documentation that explained it to me. I still haven't forgotten how much time it took me to find it though. ;-) Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP/Apache configuration failure
El Thu, 11 Jan 2007 08:15:49 -0500 Mark [EMAIL PROTECTED] escribió: LoadModule php5_module c:/Program Files/PHP/php5apache2_2.dll I do not have the AddModule line. I use AddType application/x-httpd-php .php .html. (I want to parse .html files as well.) I do not use the Action line. The action line is to execute scripts as CGI I think it's no use nowdays... -- Miguel J. Jiménez Área de Internet/XSL [EMAIL PROTECTED] ISOTROL Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta. Parque Tecnológico Cartuja '93, 41092 Sevilla. Teléfono: 955 036 800 - Fax: 955 036 849 http://www.isotrol.com Siempre intento salvar una vida al día. Normalmente es la mía (John Crichton, FARSCAPE 1x07) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP/Apache configuration failure
Bruce A. Julseth escreveu: I can't get Apache to restart after I've configured for PHP. I've upgraded my installation to 5.2. ... ... My mailbox is spam-free with ChoiceMail, the leader in personal and corporate anti-spam solutions. Download your free copy of ChoiceMail from www.digiportal.com I wrote a tutorial on how to install Apache2/PHP5 in a non standard way. http://www.educar.pro.br/compl/php5/ http://www.educar.pro.br/compl/apache22/ http://www.educar.pro.br/compl/apache2/ -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management -- Você deve, sempre, consultar uma segunda opião! -- You must hear, always, one second opinion! In all cases. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Apache configuration
/tmp is the directory used on Unix systems to store session info. On a windows box you will need to change it to something like c:\temp or c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf. HTH Jon -Original Message- From: Alexis Antonakis [mailto:[EMAIL PROTECTED]] Sent: 11 April 2001 12:56 To: Php-General@Lists. Php. Net Subject: [PHP] Apache configuration Hi, I am having problems in trying to configure Apache on my PC correctly. FYI I am using Win95 and PHP4. I have configured Apache so that it will run PHP scripts, however when I try to start a session I get the following messages: --- Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in d:\apache\htdocs\session.php on line 2 Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 I can see that the script cannot locate the '/tmp' directory. What my question is where does this '/tmp' directory need to be created and do I need to update the 'httpd.conf' file accordingly, and if so where within it? Many thanks Alexis ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] Apache configuration
Problem solved, it turned out I had two php.ini files, one for PHP3 on my c drive and one for PHP4 on my d drive. Many thanks to all who replied Alexis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] p.net]On Behalf Of Jon Haworth Sent: 11 April 2001 14:14 To: Php-General@Lists. Php. Net Subject: RE: [PHP] Apache configuration /tmp is the directory used on Unix systems to store session info. On a windows box you will need to change it to something like c:\temp or c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf. HTH Jon -Original Message- From: Alexis Antonakis [mailto:[EMAIL PROTECTED]] Sent: 11 April 2001 12:56 To: Php-General@Lists. Php. Net Subject: [PHP] Apache configuration Hi, I am having problems in trying to configure Apache on my PC correctly. FYI I am using Win95 and PHP4. I have configured Apache so that it will run PHP scripts, however when I try to start a session I get the following messages: --- Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in d:\apache\htdocs\session.php on line 2 Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 I can see that the script cannot locate the '/tmp' directory. What my question is where does this '/tmp' directory need to be created and do I need to update the 'httpd.conf' file accordingly, and if so where within it? Many thanks Alexis ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] -- 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]