psionmam Posted July 30, 2006 Share Posted July 30, 2006 HiI'm running windows xp homeI've loaded apache amd mysql and php and tried to configure php using http://www.thesitewizard.com/archive/installphp.shtmlWhen I try to run <?phpinfo()?>I just get a blank browser pageAny ideas ?Thanks Quote Link to comment https://forums.phpfreaks.com/topic/16048-newbie-installation/ Share on other sites More sharing options...
songwind Posted July 31, 2006 Share Posted July 31, 2006 You probably forgot the ";"The correct code syntax should be:<?phpinfo();?> Quote Link to comment https://forums.phpfreaks.com/topic/16048-newbie-installation/#findComment-66245 Share on other sites More sharing options...
wildteen88 Posted July 31, 2006 Share Posted July 31, 2006 Use the full PHP opening tag (<?php):[code=php:0]<?phpphpinfo();?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/16048-newbie-installation/#findComment-66265 Share on other sites More sharing options...
psionmam Posted July 31, 2006 Author Share Posted July 31, 2006 Thanks for your help guysI inserted the colon, but still no joyI installed apache, mysql and php yesterdayThat script was first attempt to get going. As I get nothing is it possible that something else is wrong?Is this the right place to ask? Where can I turn for help? ??? Quote Link to comment https://forums.phpfreaks.com/topic/16048-newbie-installation/#findComment-66443 Share on other sites More sharing options...
wildteen88 Posted July 31, 2006 Share Posted July 31, 2006 Did you use my suggestion, usoing the full PHP opening tag - <?phpLooking at that guide it is a little old. I suggest you do the following to configure Apache with PHP. First find the httpd.defualt.conf file. Now rename this to httpd.conf to overright the existing httpd.conf file.Now you have reset the config file back to defualt. Find this:[code]#LoadModule ssl_module modules/mod_ssl.so[/code]Add the following after it:[code]LoadModule php5_module "C:/php/php5apache2.dll"PHPIniDir "C:/WINDOWS"[/code]If you have PHP4, use this instead of the php5_module line:[code]LoadModule php4_module "C:/php/isapi/php4apache2.dll"[/code]Now scroll down and find the following:DirectoryIndex and add index.php to the end of the list, making sure you add a space between the last entry in the list, like so:[code]DirectoryIndex index.html index.html.var index.php[/code]Now find the following:[code]AddType application/x-gzip .gz .tgz[/code]now add the following after it:[code]AddType application/x-httpd-php .php .phtmlAddType application/x-httpd-phps .phps[/code]Now save the httpd.conf file. Find the php.ini file and move it to C:\WINDOWS if you haven't done so already.Now restart Apache Server.If Apache starts with no beeps or errors appearing. Then Apache has been configured to parse PHP files with the PHP Intepreter. Now try running your php file again. Quote Link to comment https://forums.phpfreaks.com/topic/16048-newbie-installation/#findComment-66451 Share on other sites More sharing options...
psionmam Posted July 31, 2006 Author Share Posted July 31, 2006 Thanks for your help guysI've taken the line of least restaance and used wamp. didn't know it was there before :-\seems to working fine now :) Quote Link to comment https://forums.phpfreaks.com/topic/16048-newbie-installation/#findComment-66546 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.