Re: installing php

From: Date: Thu, 19 Feb 2004 02:33:04 +0000
Subject: Re: installing php
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-12796@lists.php.net to get a copy of this message
Hope this helps. Did'nt say which versions you run, but From the Manual: ************************************************************************** #Installing PHP for Apache as module Apache Apache Apache Apache Apache # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Now that version 4.1 introduces a safer sapi module, we recommend # that you configure PHP as a module in Apache. # # To accomplish this, you have to load the php4apache.dll in your # Apache httpd.conf. #
#  !! NOTE !!        ********************* ********* *******
# Whereever you load php4apache.dll from, php4apache.dll also # needs the php4ts.dll also included in the PHP4 distribution. # php4apache.dll depends on php4ts.dll which is loaded as soon as #Apache loads php4apache.dll. If php4ts.dll can't be found, you # usually get an error like (also see the "Problems?" section at # the end of the file): #
#    Cannot load c:/php/sapi/php4apache.dll into server
# # So where does php4ts.dll has to be to be properly loaded ? # php4ts.dll is searched in the following order: # # 1) in the directory where apache.exe is start from # 2) in the directory where php4apache.dll is loaded from # 3) in your %SYSTEMROOT%\System32, %SYSTEMROOT%\system and
#     %SYSTEMROOT% directory.
#     Note: %SYSTEMROOT%\System32 only applies to Windows NT/2000/XP)
# 4) in your whole %PATH% # # Note: What is %SYSTEMROOT% ? Depending on your Windows
#        installation this may be for example c:\winnt or C:\windows
# # Usually you would just copy it over to %SYSTEMROOT%\System32. # But if you want to have multiple PHP installations (for # whatever reason) this is a bad idea. For this circumstance the # safest thing is to let php4ts.dll reside in the same directory # where php4apache.dll is loaded from (see point 2 above). # # # After you've set up the file layout properly, you're ready to # finally configure Apache to load the PHP4 module. Just add the # following lines to your httpd.conf: # # LoadModule php4_module c:/php/sapi/php4apache.dll # AddModule mod_php4.c # AddType application/x-httpd-php .php # # Note: Especially newer versions of Apache do not need the#
#        AddModule directive anymore, your milage may vary.
# # # Where do I have to put the php.ini ? # The php.ini files is only searched in two places: # 1) in your Apache installation directory (e.g. c:\apache\apache) # 2) in your %SYSTEMROOT% directory. # # # Installing PHP for Apache as CGI binary # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # If you wish to install PHP as a CGI binary, read this first: #
#    http://www.cert.org/advisories/CA-1996-11.html
# # and then if you are really sure, insert these lines to your conf file: # # ScriptAlias /php/ "c:/php/" # AddType application/x-httpd-php .php # Action application/x-httpd-php "/php/php.exe" # # Note, we consider installing PHP like this suicidal. # # As a further precaution, we recommend you change the "/php/" # ScriptAlias to something more random, to prevent the binary being # called directly, which is a security risk. # # Remember when you have finished to restart the server, for example, # NET STOP APACHE # followed by # NET START APACHE # # To use the source code highlighting feature, add the following # line to your apache httpd.conf file: #
#    AddType application/x-httpd-php-source .phps
# # Note, this will only work when you install php as a sapi module. # If you wish to use this feature with the cgi binary, create a new # file, and use the show_source("path/to/original_file.php"); function. # # # Danny Park wrote:
hi
i can`t ssem to get php to work o my computer i have mysql, apache, and php installed everything seems to be working fine ontheir own but when i try to open up index.php witch has <? phpinfo(); ?> all my browser says is that page not found the domain is localdomin and host is local host on apache can anyone help out thanks _________________________________________________________________ Watch high-quality video with fast playback at MSN Video. Free! http://click.atdmt.com/AVE/go/onm00200365ave/direct/01/


« previous php.install (#12796) next »