Re: Instaling PHP in windows with Apache

From: Date: Sat, 07 Apr 2001 11:50:08 +0000
Subject: Re: Instaling PHP in windows with Apache
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6561@lists.php.net to get a copy of this message
Dear Margarida, I don't know what exactly you have done so far but this is a clear explanation that help me when I started, it is basic I don't mean to insult your knowledge but sometimes we miss a little thing and it's gone. Tell me if this works, otherwise i can mail you my php.ini and httpd.conf because this is where you should look at. If I recall the 2 dlls are going the windows/system not just windows, one of them (msccrt.dll)you most likely already have it and the computer tell you that it is existing, keep the existing one.The other one (php4ts.dll) goes to windows/system. Also don't forget to add a couple of line in apache open httpd.conf with a text editor 1/ Find a line that said : ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" and add right under it: ScriptAlias /php4/ "c:/php4/" 2/Find a line that said: #AddType application/x-httpd-php3 .phtml #AddType application/x-httpd-php3-source .phps and add right under it: AddType application/x-httpd-php .phtml .php AddType application/x-httpd-php-source .phps 3/Find a line that said: # Format: Action media/type /cgi-script/location # Format: Action handler-name /cgi-script/location # and add right under it: Action application/x-httpd-php /php4/php.exe That's it you are done, Now first restart Apache and test Write a script that you will name phpinfo.php <? phpinfo(); ?> Open you browswer and type : http://localhost/phpinfo.php It will normally works. Another think if you run under win95 make sure you have winsock2 install if not download it at microsoft.com ""Margarida"" <ricmarc@mail.teleweb.pt> wrote in message news:9alm10$euu$1@toye.p.sourceforge.net... > Dear All > > I've installed Apache Server in my PC (windows9*) and it is running ok. I > get an answer when I ping my own machine and I can see apache's default > homepage. I've made the changes necessary in the httpd.conf file. > > I've configured my php.ini and copied the dlls to the windows directory. > > Still when I try to see the result of a simple code such as the one below > on a browser... > <html> > <head></head> > <body> > <? > echo("hello world!") > ?> > </body> > </html> > > ...I get black page > > Has anyone gone through the same problem? > Can anyone point out a solution? > > Thank you! > > Margarida > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#6561) next »