03. juni 2002 - 15:15Der er
5 kommentarer og 1 løsning
PHP selfinstaller
Jeg leder efter en selfinstaller til PHP som virker sammen med Apache. Jeg har installeret det på min webserver, alt det med "php.ini", "php4ts.dll" og "httpd.conf" snask. Alt virker fint, men når jeg prøver at sætte det op på min stationære comp laver den ballade, dvs. Apache virker selvfølgelig fint med PHP virker ikke, og jeg har gjort det helt på samme måde ... plz help =) Jeg har prøvet PHP's installer, men i slutningen af installationen skriver den at den ikke kan snakke sammen med Apache, og så virker det ikke.
(Skal lige siges at jeg har sat PHP og Apache op på webserveren manuelt.)
Bruger disse
PHP 4.2.1 zip package [5,217Kb] - 14 May 2002 (CGI binary plus server API versions for Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions included, packaged as zip)
og
PHP 4.2.1 installer [897Kb] - 13 May 2002 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
if you wish to install PHP as a CGI binary, (the sapi is much better) you need to enable the apache security fix in your php.ini by setting cgi.force_redirect = 1. Then, insert these lines to your conf file:
Please note that you cannot use php-cli.exe with your webserver. You have to use php.exe which can be found in the sapi directory of your PHP distribution.
As a further precaution, we recommend you change the "/php/" ScriptAlias to something more random, to prevent any attempts to call your binary (like the Code Red scripts) for returning a response other than 404.
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.
On Win-Apache all backslashes in a path statement such as: "c:\directory\file.ext", must be converted to forward slashes.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.