Re: Instaling PHP in windows with Apache

From: Date: Sun, 15 Apr 2001 15:22:56 +0000
Subject: Re: Instaling PHP in windows with Apache
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-6750@lists.php.net to get a copy of this message
Dear Giro, Thank you for your inputs. I've done the same as you explained to Margarida, but... my browser is displaying nothing... I've installed PHP and Apache on my PC under win98. Apache is running fine and launching PHP at the same time. When I open a php file (.php) under my browser, the PC is launching a console window which is immediately closing... I suppose it's a PHP console window. This window is empty and my browser's also... What a deception! Please help! Thank you in advance for your help. Barrou PS: Apache seems to run correctly ( http://localhost works fine) "Giro De Roover" <gderoover@starband.net> a écrit dans le message : 9amuv3$421$1@toye.p.sourceforge.net... > 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 > > > > > > -- > 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 (#6750) next »