ebm Posted June 21, 2007 Share Posted June 21, 2007 I am running Apache2.2 on Windows XP and I just installed php5. I added these lines the the Apache config file: PHPIniDir "C:/php/" LoadModule php5_module "C:/php/php5apache2_2.dll" AddType application/x-httpd-php .php I uncommented the MySQL extension and added this to php.ini: doc_root ="C:\Apache2.2\htdocs" I made a file that simply runs the phpinfo() function to test whether or not the installation was successful and all that came up was a blank screen. I looked on the internet for common installation issues thinking php was not working, but then I made a few other test scripts that worked: <?php $x=1; $x=$x+3; print "$x is what x is equal to"; ?> <?php print "HEllo world"; ?> My question is why would there be a blank screen for phpinfo(). I also get a blank screen when I make calls to session variables, even when there is html following the offending php. I am not totally sure if this is the correct forum since PHP is technically installed. But I thought maybe I installed or configured something incorrectly? I appreciate any help in advance. Quote Link to comment https://forums.phpfreaks.com/topic/56486-php-configuration-issue/ Share on other sites More sharing options...
l4nc3r Posted June 21, 2007 Share Posted June 21, 2007 >.< I'll be the guy that tells you to reinstall PHP (or at least repair it.) Run the php-cgi.exe and see what it shows you. There could be an error with an extension (though I doubt it.) Quote Link to comment https://forums.phpfreaks.com/topic/56486-php-configuration-issue/#findComment-279261 Share on other sites More sharing options...
ebm Posted June 21, 2007 Author Share Posted June 21, 2007 Yeah I uninstalled and reinstalled it a few times just to make sure, both with the msi installer and completely manually. I ran php-cgi.exe anyway however, and there were no errors reported. Quote Link to comment https://forums.phpfreaks.com/topic/56486-php-configuration-issue/#findComment-279333 Share on other sites More sharing options...
ebm Posted June 21, 2007 Author Share Posted June 21, 2007 I gave up, uninstalled everything, and installed php, apache, and mysql using wamp. I am still having the same problem. Quote Link to comment https://forums.phpfreaks.com/topic/56486-php-configuration-issue/#findComment-279515 Share on other sites More sharing options...
wildteen88 Posted June 22, 2007 Share Posted June 22, 2007 If you get a blank screen I would recommend you to go into the php.ini and turn a setting called display_errors on. Save the php.ini and restart Apache/WAMP If there is any errors PHP will now spit them out to the screen. Quote Link to comment https://forums.phpfreaks.com/topic/56486-php-configuration-issue/#findComment-280237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.