Lankster Posted May 16, 2007 Share Posted May 16, 2007 I installed the php and when I start the localhost/phpinfo.php it whats to download the file? Im missing something guys.. Can ya drop me a hint? ty Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/ Share on other sites More sharing options...
trq Posted May 16, 2007 Share Posted May 16, 2007 Sounds like your server is not configured properly. What server are you using? What steps have you taken to install php and configure the server for its use? Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254057 Share on other sites More sharing options...
clown[NOR] Posted May 16, 2007 Share Posted May 16, 2007 are you sure you installed everything right? have you also installed apache? i recommend you go to http://www.wampserver.com/ and download wamp5... it has everything... Apache, PHP & MySQL Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254058 Share on other sites More sharing options...
john010117 Posted May 16, 2007 Share Posted May 16, 2007 This is a good tut. Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254066 Share on other sites More sharing options...
trq Posted May 16, 2007 Share Posted May 16, 2007 The last two responses obviously assume your using windows, and the last also assumes IIS, shudder. Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254068 Share on other sites More sharing options...
john010117 Posted May 16, 2007 Share Posted May 16, 2007 The last two responses obviously assume your using windows, and the last also assumes IIS, shudder. LOL I guess I'm used to using Windows 2k.... Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254069 Share on other sites More sharing options...
Lankster Posted May 16, 2007 Author Share Posted May 16, 2007 installed the php5.0.4 installer for windows went threw the manual, add some lines in the conf ScriptAlias /php "c:/server/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" lines in php.ini extension=php_mysql.dll extension_dir = "c:\Server\php\ext" moved the file libmysql restart apache (a few times now) made the <?php phpinfo(); ?> and saved it as a php open my browser, typed in: http://localhost/phpinfo.php then i get a popup asking if I want to download that file. Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254071 Share on other sites More sharing options...
trq Posted May 16, 2007 Share Posted May 16, 2007 I'm sorry, I don't use windows but from what Ive heard, the installer isn't the way to go. Maybe it would be just as easy to setup something like wampserver as suggested? Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254073 Share on other sites More sharing options...
Lankster Posted May 16, 2007 Author Share Posted May 16, 2007 I'm sorry, I don't use windows but from what Ive heard, the installer isn't the way to go. Maybe it would be just as easy to setup something like wampserver as suggested? Yep did that one first and nothing worked at all. I get a some error's from apache and sql would not load.. So now I start over, apache works, mysql is loading, but php is not... Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254077 Share on other sites More sharing options...
yzerman Posted May 16, 2007 Share Posted May 16, 2007 you have to configure your apache server on windows to run PHP as a module. It is so much simpler. open C:\Apache2\conf\httpd.conf add these lines to the bottom if they do not exist already (uncomment the right one by removing the #): # For PHP 4 do something like this: LoadModule php4_module "c:/php/php4apache2.dll" AddType application/x-httpd-php .php # For PHP 5 do something like this: #LoadModule php5_module "c:/php/php5apache2.dll" #AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/PHP" Restart the server. in the Apache Monitor it should at the bottom of the monitor Apache 2.X.X (Win32) PHP 4.X.X Once this shows up in the apache monitor, you know PHP is running right. Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254078 Share on other sites More sharing options...
Lankster Posted May 16, 2007 Author Share Posted May 16, 2007 you have to configure your apache server on windows to run PHP as a module. It is so much simpler. open C:\Apache2\conf\httpd.conf add these lines to the bottom if they do not exist already (uncomment the right one by removing the #): # For PHP 4 do something like this: LoadModule php4_module "c:/php/php4apache2.dll" AddType application/x-httpd-php .php # For PHP 5 do something like this: #LoadModule php5_module "c:/php/php5apache2.dll" #AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/PHP" Restart the server. in the Apache Monitor it should at the bottom of the monitor Apache 2.X.X (Win32) PHP 4.X.X Once this shows up in the apache monitor, you know PHP is running right. yah i had to change it to: #LoadModule php5_module "c:/php/php5apache2_2.dll" If I change it to #LoadModule php5_module "c:/php/php5apache2.dll" I get this: ERROR The requested operation has failed! so I change it to: #LoadModule php5_module "c:/php/php5apache2_2.dll" apache runs.. Okay it was just one of my type O's .. in line:AddType application/x-httpd-php .php I has it like this...:AddType application/x-httpd .php so ty for your time... Quote Link to comment https://forums.phpfreaks.com/topic/51585-phpinfophp-downloads-why/#findComment-254092 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.