...

View Full Version : Installing PHP on Windows



Webgirl
02-18-2008, 10:44 PM
I need help installing PHP on my Windows computer running Vista Home Basic. Actually I downloaded this Binary or mirror I hope its called that way PHP 5.2.5 zip package though I didnt install the PHP 5.2.5 Installer - dont know whether I was supposed to download that as well. Sorry to sound dumb but I dont know how it functions.

As mentioned before I downloaded the first part and made the mentioned changes in the php.ini but it still doesnt function. Please bear with me for I read that PHP is easy but for me at the moment installing it doesnt seem easy at all.

I downloaded there at http://ch2.php.net/downloads.php since I live in Switzerland - thats was the suggestion I got from the php.net

Im sure someone has asked this question before unfortunately I didnt find it.

Thanks for your help and kindness

StupidRalph
02-18-2008, 11:13 PM
Do you have server software installed? If not you'll need to install it. Apache is what most PHP use.

What do you plan on doing with PHP? If you're also interested in interacting with a database, then I'd suggest you download XAMPP from http://www.apachefriends.org/en/xampp.html . XAMPP has a simple installer that will install PHP, Apache Server, MySQL (database server), and Perl.

It really simplifies the installation process for developmental servers.

Webgirl
02-18-2008, 11:18 PM
want to learn everything there is to learn about PHP and become a pimp - in this case I will try to downlaod what you suggested hoping its easy to install. Thanks a million :-)

Oh my God do I install all those three files there or only one - Sorry for the dumb question. They are
Xampp
Xampp add ons
Xampp lite

outseeker
02-18-2008, 11:53 PM
Xamp on it's own should be complete mate.

If u wanna install stuff manually, I will quickly tell u how since u wanna be a pimp ;)

Install Apache Web Server. Then u gotta add lines to your Apache's httpd.conf (configuration file) to include php functionality. (That's apache server directory/conf/httpd.conf) They are:

LoadModule php5_module C:/php/php5apache2_2.dll (or whatever version matches your Apache, mine is Apache 2.2 so I have the php5 module for v2.2)
SetEnv PHPRC c:/php
PHPIniDir C:/php

I added mine to the end of the existing LoadModules section to keep things easy to read thru. I assume u unzipped php to the c:\php, but just change it to wherever you unzipped PHP to.
Also in there you need to add .php as a file extension, and an index file so find:

DirectoryIndex index.html (and add index.php to the list)

also add:

AddType application/x-httpd-php .php

Apache will call on php from it's directory as is needed. That should have PHP up and running with Apache. I may have missed something small, but error messages or the output always explain themselves ;)

StupidRalph
02-19-2008, 12:39 AM
I don't know a thing about installing PHP or programming or even computers but I sent you a PM on how to make your Pimp hand really strong.

All jokes aside for anyone who might find this thread via a search engine in the future. (I'm Nostradamus) I simply referred her to an article on installing Vista. The article said:

that you should turn off the Computer User Access (CUA)
need the C run time values (link (http://www.dll-files.com/dllindex/dll-files.shtml?msvcp71)) in the XAMPP folder.
if the installservice bat won't run properly, you may need to open it and change Apache2 to Apache2.2.
Make sure that Vista's firewall isn't blocking MySQL or Apache. If it is unblock it.
If running Skype, you should disable it from using port 80 (Menu Tools/Options/Connection)

Here is a video on Youtube that supposedly shows you now to install XAMPP on Vista.
http://www.youtube.com/watch?v=owVu-ZpLrZc

I can't verify any of this b/c I'm not running Vista. But, I know you were concerned with installing this b/c you didn't see a mention of Vista in its specs.



With XAMPP 1.6.1 we tried to make the Windows version ready for Vista. The beta tests were very successful and most people reported a very smooth XAMPP under Vista but there were also people still having problems. Please get in touch with me if you also encounter problems on Vista. Currently please avoid installing XAMPP into the "Program files" folder.

http://www.apachefriends.org/en/news-article,99862.html
So a small summary, I'm a pyschic programming pimp with an apparent affinity for alliteration.

_Aerospace_Eng_
02-19-2008, 01:32 AM
I installed the latest version of XAMPP out of the box on Vista Business. It is true about Skype though. It can be running when you start apache. And yes installing to the C: drive directly is your best choice.

Webgirl
02-19-2008, 04:35 PM
Well I dont have any Skype on my machine at the moment and I turned off the pop up Blocker - and I will be downloading it to C:/

Webgirl
02-19-2008, 05:00 PM
:confused:Well I've installed the installer (Xampp Windows 1.6.6) on C:xampp - Do I need to install something else. Sorry dont want to sound dumb but I am when it comes to installing PHP :o

_Aerospace_Eng_
02-19-2008, 05:12 PM
No thats it. Now you have php, apache, and mysql installed on your system.

There is a folder found at C:\xampp\htdocs\ this is the folder where all of your files you want to view will go. You can create subfolders if you like. You also need to start apache. Had you been paying attention to when you installed xampp you would have noticed it asked you if you would like to start the control panel. You should have said yes. Now its on your start menu under apachefriends. You want the XAMPP Control Panel. After opening the control panel you need to start apache so click the little start button next to apache. Wait about 30 seconds then in your browser type http://localhost. This should take you to the xampp start page. Select yoru language and if all is well you will see a screen that has a lot of links on the left. It should be an orange looking color. If you are just testing php on your system then you are done. Start creating php files and put them in the htdocs folder. If you created subfolders you can access them like so http://localhost/subfoldername/.

Just learn to follow the directions figuring out what EACH step does and you will be fine. XAMPP is pretty popular so their is quite a bit of documentation on it.

PRodgers4284
02-19-2008, 08:49 PM
I need help installing PHP on my Windows computer running Vista Home Basic. Actually I downloaded this Binary or mirror I hope its called that way PHP 5.2.5 zip package though I didnt install the PHP 5.2.5 Installer - dont know whether I was supposed to download that as well. Sorry to sound dumb but I dont know how it functions.

As mentioned before I downloaded the first part and made the mentioned changes in the php.ini but it still doesnt function. Please bear with me for I read that PHP is easy but for me at the moment installing it doesnt seem easy at all.

I downloaded there at http://ch2.php.net/downloads.php since I live in Switzerland - thats was the suggestion I got from the php.net

Im sure someone has asked this question before unfortunately I didnt find it.

Thanks for your help and kindness


Download wamp, it has everythin you need and really easy to use

http://www.wampserver.com/en/index.php

Webgirl
02-19-2008, 09:23 PM
well now I have Xampp Control Panel and on the screen I see Services.... and SCM

on the right there are some buttons like "status" "refresh" "explore" "help" "exit"
when I click on start on Apache this is what I get on the screen underneath

Status check ok
XAMPP Application Status 1.1.2.2.
and more text - what do I do now

StupidRalph
02-19-2008, 09:54 PM
As long as apache is running as indicated in the following attachment you're ready to rock n' roll (and pimp).

You can type: http://localhost in your address bar to see your server in action. You can play around with XAMPP's sample code.

From here you can find some PHP tutorials to get started on learning the language. As _Aerospace has mentioned already, you will should save all of your .php files in a subfolder of 'htdocs' (C:\xampp\htdocs).]

If you were to create a folder named 'webgirl' under the htdocs folder, you'd save all of your relevant files (.php, .html, .css, .inc, et cetera) for that site in that folder. You can think of each folder you create under 'htdocs' as a different website. In this example, you'd access your site by typing " http://localhost/webgirl " in the address bar.

I like to refer people to this link for a really good commentary concerning PHP.
http://hudzilla.org/phpwiki/index.php?title=Main_Page

I'm not really sure of any specific tutorial site but Google would assist you nicely.

WAMP is another application very similar to XAMPP. At this point and time installing it would be redundant since you have XAMPP functioning. If you, want, you can review it and decide if you want to change to using WAMP over XAMPP but thats simply would be a preference decision.

StupidRalph
02-19-2008, 09:54 PM
I type to slow :p

Webgirl
02-19-2008, 10:05 PM
J U H U

Welcome to XAMPP for Windows Version 1.6.6 !
Congratulations:
You have successfully installed XAMPP on this system!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum