Re: PHP cgi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you don't have errors, then probably PHP is starting but there is some other problem.
My HTTPD.CONF is as follows, and it runs fine.


Luis



#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
# ScriptAlias /cgi-bin/ "d:/program files/Apache Group/Apache/cgi-bin/"
ScriptAlias /php/ "c:/php/"
ScriptAlias /php/ "d:/myweb/scripts_php/"
ScriptAlias /php/ "d:/Songahm_management/"


#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps


#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#
Action application/x-httpd-php /php/php.exe



blulagoon wrote:

I've looked in the apache error.log file, but there are no entries logged there when apache fails to start.

I think you could make the case either way as to which group is more relevant here, PHP or Apache.

That's what I meant

However I'm sure there
are lots of people here who use PHP with Apache running under Windows,


Me, for one

and hopefully some of them will have switched between
cgi and module mode and be able to tell me what I'm doing wrong.


That, I didn't do.

Apologies to IIS users to whom this thread is of no interest.

Luis Moreira wrote:



This is a PHP list, and there is an Apache one were this problem fits
better.
Go to www.apache.org and subscribe it.
Meanwhile, do you have an error log to look at ?
What does it say ?

Luis

blulagoon wrote:



Thanks Dean. I've commented out the lines that say:

Action application/x-httpd-php /php/php.exe
ScriptAlias /php/ "C:/php/"

which I think are involved with cgi, but I don't know enough about the configuration files to know what else it uses,
but with those lines '#' out, the two new lines added and all my addtype lines together, again Apache refuses to start.
Do you have any idea if any other lines need to be disabled, the two above are the only ones mentioned in the
install.txt file

Thanks again for your help.

Dean Hayes wrote:





Yes remove all the lines that relate to running PHP as a CGI u can not run
both at the same time

Sorry forgot to say this before did not think about it

Dean "The Insane Guy" Hayes

<-- I design and i redesign but still i never designed true beauty like you
-->

~~~ Call me Insane call me Crazy but there is one thing i know i am That is
someone that shall reach peoples hearts with words ~~~

~~ PHP seems easy enough but what about this ASP now that looks hard ~~












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

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux