php-install Digest 24 Jun 2001 21:59:14 -0000 Issue 333 Topics (messages 3321 through 3323): PHP4/Win98/Apache = Blank Screen 3321 by: Ed Harris 3322 by: Julie Meloni PHP 4.0.6 & GD 3323 by: Rob Beckett Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I've seen this problem posted many times but with few responses. Assistance would be greatly appreciated. When I attempt to open the standard test PHP script containing in the Apache htdocs directory: <? php_info(); ?> I get a blank screen in the browser. A view source does reveal the code. PHP docs say this means the web server did not send the script to php for interpretation. So I have gone over all the needed settings in both the php docs and the Apache docs. All is as it should be. The Apache server tests as fully functional when doing a http://localhost in the browser. I will list what I have done and perhaps someone may see what I have missed: 1) Php is extracted into the C:\php directory. 1b) Apache is installed into the c:\apache directory. 2) "php.ini-dist" has been renamed "php.ini" and placed in the "c:\windows directory" per Win98 instructions. 3) The "php.ini" file was edited to change the 'extension_dir' setting to point to c:\php 4) The php.ini file was edited to set the 'doc_root' to point to "c:\apache\htdocs" (this is the installed location) CHANGES TO THE APACHE CONFIG FILE: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" 5) moved "php4ts.dll" to the windows/system directory (Win98) 6) Added to Apache config: LoadModule php4_module c:/php/sapi/php4apache.dll 7) Added to Apache config: AddType application/x-httpd-php .php Done. I REALLY WOULD APPRECIATE THE HELP OF AN EXPERIENCED INDIVIDUAL. I have done all that the documentation says to do, and beyond that I have no idea. Ed
look for a hidden file extension of txt on the end of your php script filename. Ed Harris wrote: > I've seen this problem posted many times but with few responses. Assistance > would be greatly appreciated. > > When I attempt to open the standard test PHP script containing in the Apache > htdocs directory: > <? php_info(); ?> > I get a blank screen in the browser. A view source does reveal the code. PHP > docs say this means the web server did not send the script to php for > interpretation. So I have gone over all the needed settings in both the php > docs and the Apache docs. All is as it should be. > > The Apache server tests as fully functional when doing a http://localhost in > the browser. > > I will list what I have done and perhaps someone may see what I have missed: > > 1) Php is extracted into the C:\php directory. > 1b) Apache is installed into the c:\apache directory. > 2) "php.ini-dist" has been renamed "php.ini" and placed in the "c:\windows > directory" per Win98 instructions. > 3) The "php.ini" file was edited to change the 'extension_dir' setting to > point to c:\php > 4) The php.ini file was edited to set the 'doc_root' to point to > "c:\apache\htdocs" (this is the installed location) > CHANGES TO THE APACHE CONFIG FILE: > ScriptAlias /php/ "c:/php/" > AddType application/x-httpd-php .php > Action application/x-httpd-php "/php/php.exe" > 5) moved "php4ts.dll" to the windows/system directory (Win98) > 6) Added to Apache config: LoadModule php4_module c:/php/sapi/php4apache.dll > 7) Added to Apache config: AddType application/x-httpd-php .php > > Done. > I REALLY WOULD APPRECIATE THE HELP OF AN EXPERIENCED INDIVIDUAL. I have done > all that the documentation says to do, and beyond that I have no idea. > > Ed -- +----------------------------------------+ | Julie Meloni ([EMAIL PROTECTED]) | | | | "PHP Essentials" and "PHP Fast & Easy" | | http://www.thickbook.com | +----------------------------------------+
Hey all, hoping to get some advice. After much fun & frolics getting PHP 4.0.5 to compile properly with the basics (MySQL support), since I'm still fiddling with extra features, I'd do it with 4.0.6 instead. All went well to start with, I got through the initial config ok, but upon trying to 'make' the code, It suddenly stopped at this point... /bin/sh /usr/src/php-4.0.6/libtool --silent --mode=compile gcc -I. -I/usr/src/p hp-4.0.6/main -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 -I/usr/include/ apac he -I/usr/src/php-4.0.6/Zend -I/usr/include/imap -I/usr/local/include -I/usr /src /php-4.0.6/ext/mysql/libmysql -I/usr/src/php-4.0.6/ext/xml/expat/xmltok -I/u sr/s rc/php-4.0.6/ext/xml/expat/xmlparse -I/usr/src/php-4.0.6/TSRM -DLINUX=2 -DN O_DB M_REWRITEMAP -DMOD_SSL=202108 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BO OL - DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -DSUPPORT_UTF8 -DXML_BYTE_ORDER=1 2 -g -O2 -c internal_functions.c In file included from internal_functions.c:35: /usr/src/php-4.0.6/ext/gd/php_gd.h:33: gd.h: No such file or directory make[2]: *** [internal_functions.lo] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.6/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.6/main' make: *** [all-recursive] Error 1 --- I thought, "what the hell?"... FYI, this is on a Cobalt RaQ3 (Had much fun with the modded-configuration these babies have), currently running GD V1.3-5. Upon examining the directory, I agreed, there was no gd header file. I'm far from a pro, in relation to most linux guru's I'm a novice, but I do know a lot more than most beginners. This one did have me confused however. Is the file missing from the distribution? Is it due to a version of GD thats too old? Help would be really appreciated on this one, please cc to my email @ [EMAIL PROTECTED] Thanks, Rob Beckett. [EMAIL PROTECTED] www.subwolf.org