Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New Coder
    Join Date
    Jul 2006
    Location
    Switzerland
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Installing PHP on Windows

    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

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    New Coder
    Join Date
    Jul 2006
    Location
    Switzerland
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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
    Last edited by Webgirl; 02-19-2008 at 12:22 AM.

  • #4
    Regular Coder
    Join Date
    Feb 2008
    Location
    Australia baby!
    Posts
    143
    Thanks
    6
    Thanked 3 Times in 3 Posts
    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
    Last edited by outseeker; 02-19-2008 at 01:32 AM. Reason: AddType was forgotten ;)
    outseeker - http://outer.reaches.dyndns.org/index.php
    I hope this helped someone. Due to this forums lame rep system penalising me for nothing, and admins inability to do anything about it, I'm sorry to say I will no longer be online here. Pride is important. Good Luck All.

  • #5
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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) 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.


    Quote Originally Posted by ApacheFriends
    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.
    Last edited by StupidRalph; 02-19-2008 at 01:43 AM.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New Coder
    Join Date
    Jul 2006
    Location
    Switzerland
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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:/

  • #8
    New Coder
    Join Date
    Jul 2006
    Location
    Switzerland
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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

  • #9
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #10
    Regular Coder
    Join Date
    Jan 2008
    Posts
    216
    Thanks
    10
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Webgirl View Post
    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

  • #11
    New Coder
    Join Date
    Jul 2006
    Location
    Switzerland
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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

  • #12
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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.
    Attached Thumbnails Attached Thumbnails Installing PHP on Windows-xampp.gif  
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • Users who have thanked StupidRalph for this post:

    Webgirl (02-19-2008)

  • #13
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    I type to slow
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #14
    New Coder
    Join Date
    Jul 2006
    Location
    Switzerland
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts
    J U H U

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •