Avatar billede canon Nybegynder
03. juni 2002 - 15:15 Der 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)
Avatar billede canon Nybegynder
03. juni 2002 - 15:17 #1
kører apache_1.3.20-win32-src-r2
Avatar billede tomsommer Juniormester
03. juni 2002 - 15:38 #2
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:

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

  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.
Avatar billede tomsommer Juniormester
03. juni 2002 - 15:40 #3
med andre ord, skriv
      ScriptAlias /php/ "c:/Programmer/php/"
      Action application/x-httpd-php "/php/php.exe"
      AddType application/x-httpd-php .php
      AddType application/x-httpd-php-source .phps

i din httpd.conf og genstart apache
Avatar billede canon Nybegynder
03. juni 2002 - 15:56 #4
Jeg har winXP installeret på drev e:, har det noget at sige, jeg har selvfølgelig skrevet e:\php etc. over alt
Avatar billede canon Nybegynder
03. juni 2002 - 15:57 #5
nu virker det sq =) thx
Avatar billede tomsommer Juniormester
03. juni 2002 - 16:15 #6
anytime :)
Avatar billede Ny bruger Nybegynder

Din løsning...

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.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester