Re: [PHP] Re: PHP/Apache configuration failure

2007-01-11 Thread Miguel J. Jiménez
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

2007-01-11 Thread Mark


""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  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] PHP/Apache configuration failure

2007-01-11 Thread Ford, Mike
On 10 January 2007 16:28, Bruce A. Julseth wrote:

> 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.
[...]
> 4) I made the following changes to Httpd.conf
> After the last entry in the LoadModule section:
> 
>   LoadModule php5_module "c:/php5/php5apache.dll"

My memory may be failing here, but I believe that's the .dll for Apache 1. For 
Apache 2.2, you should have a php5apache2_2.dll.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP/Apache configuration failure

2007-01-10 Thread zerof

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



[PHP] PHP/Apache configuration failure

2007-01-10 Thread Bruce A. Julseth

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  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


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

Re[2]: [PHP] PHP/Apache configuration for Win NT

2001-08-22 Thread Julie Meloni


pegc> I then retried it and got the following error message:-

pegc> Internal Server Error
pegc> The server encountered an internal error or misconfiguration and was unable to
pegc> complete your request.
pegc> Please contact the server administrator, [EMAIL PROTECTED] and
pegc> inform them of the time the error occurred, and anything you might have done
pegc> that may have caused the error.

pegc> More information about this error may be available in the server error log.

What does the error log say, then?


pegc> and then:-

pegc> Fatal error: Call to undefined function: info() in C:\Program Files\Apache
pegc> Group\Apache\htdocs/phpinfo.php on line 3

pegc> when I tried the phpinfo test.

The function is phpinfo()


   Julie Meloni 
[EMAIL PROTECTED]
"PHP Essentials" & "PHP Fast & Easy"
 --- www.thickbook.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] PHP/Apache configuration for Win NT

2001-08-22 Thread paul . eaton

Hi Julie,

I realised that I had a case sensitivity issue with my script alias and
corrected it.

So far so good.

I then retried it and got the following error message:-

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and
inform them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error log.



and then:-

Fatal error: Call to undefined function: info() in C:\Program Files\Apache
Group\Apache\htdocs/phpinfo.php on line 3

when I tried the phpinfo test.

Well I just completely confused, everything is exactly as you said it should be
(I think)

Can anyone offer any further suggestions,

Thanks,

Paul Eaton.






Julie Meloni <[EMAIL PROTECTED]> on 08/21/2001 05:09:56 PM

Please respond to Julie Meloni <[EMAIL PROTECTED]>

To:   Paul Eaton/Harlequin@Harlequin
cc:   [EMAIL PROTECTED]
Subject:  Re: [PHP] PHP/Apache configuration for Win NT



pegc> ScriptAlias /php/ "C:/Php/"

pegc> AddType application/x-httpd-php .php .phtml .html
pegc> AddType application/x-httpd-php-source .phps

pegc> Action application/x-httpd-php /Php/php.exe

Check for mismatched cases in httpd.conf.



   Julie Meloni
[EMAIL PROTECTED]
"PHP Essentials" & "PHP Fast & Easy"
 --- www.thickbook.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[2]: [PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread Julie Meloni


NF> You appear to have a typo in your httpd.conf:

NF> Action application/x-httpd-php /Php/php.exe

NF> should be as follows: (note the ")

NF> Action application/x-httpd-php "/Php/php.exe


This is not accurate.


   Julie Meloni 
[EMAIL PROTECTED]
"PHP Essentials" & "PHP Fast & Easy"
 --- www.thickbook.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] PHP/Apache configuration for Win NT

2001-08-21 Thread Neil Freeman

You appear to have a typo in your httpd.conf:

Action application/x-httpd-php /Php/php.exe

should be as follows: (note the ")

Action application/x-httpd-php "/Php/php.exe

Hope that helps,

Neil

[EMAIL PROTECTED] wrote:

> ***
>  This message was virus checked with: SAVI 3.48
>  last updated 14th August 2001
> ***
>
> Hi,
>
> Here's the scenario,
>
> I've installed and am running mySQL on my machine
> I've installed Apache and have ran it and seen the page in IE confirming correct
> setup.
>
> I've installed PHP4 from a CGI binary distribution at the following location
>
>  c:\Php\
>
> and have been following a tutorial on WebMonkey in order to configure it.
>
> As instructed I have inserted the following lines in my httpd.conf file
>
> ScriptAlias /php/ "C:/Php/"
>
> AddType application/x-httpd-php .php .phtml .html
> AddType application/x-httpd-php-source .phps
>
> Action application/x-httpd-php /Php/php.exe
>
>  DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
>
> The tutorial also instructed me to move the php4ts.dll to the following place
>
>  c:\Winnt\system
>
> which I have done
>
> After rebooting my machine I started IE and pointed it at the apache server
> again.
> This time it produced an error as follows (from the log)
>
>  [Tue Aug 21 14:54:47 2001] [error] [client 172.16.18.149] File does not
> exist:
>  c:/program files/apache group/apache/htdocs/php/php.exe/index.html
>
> As instructed I created the filephpinfo.php in the Document root and pointed the
>  browser at it.
>
> This yielded the following error message:
>
>  [Tue Aug 21 14:54:53 2001] [error] [client 172.16.18.149] File does not
> exist:
>  c:/program files/apache group/apache/htdocs/php/php.exe/phpinfo.php
>
> Can anyone tell me where I am going wrong here please?
>
> Any suggestions gratefully received.
>
> Thanks,
>
> Paul Eaton.
>
> --
> 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]

--

 Email:  [EMAIL PROTECTED]
 [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]




Re: [PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread Julie Meloni

pegc> ScriptAlias /php/ "C:/Php/"

pegc> AddType application/x-httpd-php .php .phtml .html
pegc> AddType application/x-httpd-php-source .phps

pegc> Action application/x-httpd-php /Php/php.exe

Check for mismatched cases in httpd.conf.



   Julie Meloni 
[EMAIL PROTECTED]
"PHP Essentials" & "PHP Fast & Easy"
 --- www.thickbook.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]




[PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread paul . eaton

Hi,

Here's the scenario,

I've installed and am running mySQL on my machine
I've installed Apache and have ran it and seen the page in IE confirming correct
setup.

I've installed PHP4 from a CGI binary distribution at the following location

 c:\Php\

and have been following a tutorial on WebMonkey in order to configure it.

As instructed I have inserted the following lines in my httpd.conf file

ScriptAlias /php/ "C:/Php/"

AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps

Action application/x-httpd-php /Php/php.exe

 DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

The tutorial also instructed me to move the php4ts.dll to the following place

 c:\Winnt\system

which I have done

After rebooting my machine I started IE and pointed it at the apache server
again.
This time it produced an error as follows (from the log)

 [Tue Aug 21 14:54:47 2001] [error] [client 172.16.18.149] File does not
exist:
 c:/program files/apache group/apache/htdocs/php/php.exe/index.html

As instructed I created the filephpinfo.php in the Document root and pointed the
 browser at it.

This yielded the following error message:

 [Tue Aug 21 14:54:53 2001] [error] [client 172.16.18.149] File does not
exist:
 c:/program files/apache group/apache/htdocs/php/php.exe/phpinfo.php


Can anyone tell me where I am going wrong here please?

Any suggestions gratefully received.

Thanks,

Paul Eaton.



-- 
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

2001-04-11 Thread Alexis Antonakis

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]




RE: [PHP] Apache configuration

2001-04-11 Thread Jon Haworth

/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] Apache configuration

2001-04-11 Thread Alexis Antonakis

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


-- 
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]