Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everybody,

I want to install php in my windows vista home basic.

I made the next steps:

1) I was Installed apache 2.2.19
2) I download php-5.2.17
3) I make the folder c:/php and put all the files downloaded.
4) I renamed php.ini-recomended into php.ini and make changes inside.
for example:
display_errors = On
extension_dir = "./ext"
extension=php_mysql.dll
extension=php_mysqli.dll

5) I re-write the httpd.conf into apache and put this lines:

<b>

#For PHP5
LoadFile "C:/php/php5ts.dll"
LoadModule php5_module "C:/php/php5apache2_2.dll"

<IfModule php5_module>
PHPIniDir "C:/php"
#PHPIniDir "C:/Winnt"

<Location />
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Location>

</IfModule>
</b>

5) restarting the service.

I made the nex simple php page:
<b>
<html>
<head>
<title>Hello in PHP</title>
</head>
<body>
<h1>HELLO IN PHP</h1>
<?
print “Hello, world!”;
phpInfo();
?>
</body>
</html>
</b>

But the apache server show to me a page only just: "HELLO IN PHP"
and the code between delimiter php (<? and ?>) do not execute . why????

what is wrong???
Please I need your help,

Thanks again,

Leonardo Ayala R.
Posted

You can put your updated php.ini file in 'C:/windows' and restart the services.

Hope this help :)

If further queries comment here!!
 
Share this answer
 
Comments
leocode7 9-Jun-11 8:26am    
hello friend, thanks I made that, but even don't work.
I you find another reason, tell me.
aditionally I put my index.php file in htdocs folder of apache to run it.
it it the correct place to run my php code?????
Thanks in advance
Uday P.Singh 13-Jun-11 12:51pm    
yes you have to put all the php codes in htdocs folder and make the file name with .php extension.Then run the file in browser like this:

localhost/filename.php
you xammp sever which include appachi server and php and mysql so best is install xampp sever
 
Share this answer
 
Comments
leocode7 9-Jun-11 9:05am    
hello friend, I know about that. but tell me how i can install this
manually, because with MSI Installer is not interesting...
thanks in advance. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900