Author |
|
kenwort
Joined: 25 Oct 2013 Posts: 6 Location: UK, Ringwood
|
Posted: Fri 25 Oct '13 22:58 Post subject: PHP windows download |
|
|
Hi all i am new to both apache and PHP. I am trying ot set up a development server on my laptop to learn PHP and Mysql. i am following the instructions in a book by sitpoint and they have pointed me to www.php.net to download the latest windows binaries. However when i try to find the correct file for windows 64 it seems to indicate to come to this site, but i cant find the files. I have already downloaded and installed appach from httpd.apache.org so now i just need the relevant PHP download. Can someone help me please. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 26 Oct '13 10:19 Post subject: |
|
|
Downloads of PHP are at http://windows.php.net/download/
Assuming you want the latest php 5.5
Downloads Apache:
On http://windows.php.net/download/ is stated:
Please use the Apache builds provided by Apache Lounge. They also provide VC11 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.
Steffen |
|
Back to top |
|
kenwort
Joined: 25 Oct 2013 Posts: 6 Location: UK, Ringwood
|
Posted: Sat 26 Oct '13 10:47 Post subject: PHP windows download |
|
|
i think i need a bit more help as I probably lack understanding. The apache.org download is not recommended with the latest version of php. On apache lounge I have downloaded the latest apache build 2.4.6.win 64 as i running win 7 /64bit. However this just appears to give me a lot of folders rather than installing anything. So i guess I am stuck at how to turn this download into an install. I presume ths means i have to convert the download into a binary i.e. compile but i dont know how to do this.
Secondly once I have the correct apache installed which version of PHP do I install? I dont understand the difference between VC11 and 9 and thread safe and non thread safe. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 26 Oct '13 11:01 Post subject: |
|
|
Read the readme.txt in the .zip.
No need to compile, just extract as stated in the readme.
Also what can help is www.apachelounge.com/viewtopic.php?t=2394 , on some points a little outdated, but it gives you some background.
VC11 is a newer compiler then VC9.
Thread safe you need if you install php as module in Apache, the non thread safe is needed when you want it running with fastcgi (mod-fcgid).
Best you start with the VC11 5.5 thread safe version.
Steffen |
|
Back to top |
|
kenwort
Joined: 25 Oct 2013 Posts: 6 Location: UK, Ringwood
|
Posted: Sat 26 Oct '13 11:39 Post subject: PHP windows download |
|
|
Many thanks for the advice and the link. This seems to be exactly what i need. However, I have stumbled at the first step of the Apach installation. i have read the readme file and conducted the httpd.exe command but I get an error saying that I need to set my global domain. However, when i chekc the localhost through my browser i get the "it works" response. I then executed the httpd.exe -K install command but got the response that i may have forgotten to log in as administrator. What should i do? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 26 Oct '13 12:13 Post subject: |
|
|
Did you read in above topic:
...BEFORE you UN-INSTALL the MSI file, open a command prompt run as administrator and navigate to
the BIN folder of Apache. Now, uninstall the service..
Steffen |
|
Back to top |
|
kenwort
Joined: 25 Oct 2013 Posts: 6 Location: UK, Ringwood
|
Posted: Sun 27 Oct '13 15:19 Post subject: |
|
|
Thanks for the help so far. But I am still a bit stuck. Firstly I unistalled the apache.org version using the method described. When I ran the uninstall command prompt from the bin folder it just told me there was no instance of this.
So the status i am now at is that i have uninstalled the apache.org version via windows control panel and I have deleted the original Apache folder and its contents. I have installed the windows C++ version and I have then downloaded the recommended ZIP file from ApacheLounge and unzipped this to a folder C:\Apacher24 as recommended.
When i go to the bin folder and run httpd command I get the following after a couple of seconds "AH00558: httpd: Coud not reliably determine the server's fully qualified domain name using fe80::1dbc:6936:608b. Set the "ServerName" directive globally to suppres this message"
so this seems to be indicating that apache is working but doesnt not like the setup. how to I set the servername etc? I just want to use apache as a development server on my laptop. I am running windows 7 64bit. |
|
Back to top |
|
kenwort
Joined: 25 Oct 2013 Posts: 6 Location: UK, Ringwood
|
Posted: Sun 27 Oct '13 16:23 Post subject: |
|
|
OK a bit more information. i have edited the httpd.conf file so that ServerName now reads Locahost:80. this seems to have removed the error reported above. Now when I type httpd.exe -k install i get the following error
"installing the apache2.4 Service
<OS 5>Access is denied. :AH00369: Failed to open the WinNT service manager, perhaps you forogt to log in as Administrator?"
Does anyone have any ideas what i do next. Please be explicit as I am a newbie. |
|
Back to top |
|
kenwort
Joined: 25 Oct 2013 Posts: 6 Location: UK, Ringwood
|
Posted: Sun 27 Oct '13 16:34 Post subject: |
|
|
Some more progress so i am posting it here to help others. I exited my command prompt box and then went to "start\Accessories\" and started the Command Prompt option by right clicking on it and selecting "run as administrator" i then went back to the bin folder in the Apache24 directory and rerun the command httpd.exe -k install
This then reported that Apache had installed successfully and was then testing. It stated errors would be reported below but it didnt report any errors so i assume i am good to go now. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 27 Oct '13 17:04 Post subject: |
|
|
Good to hear and thanks reporting back. It is a learning curve and trial and error is the best. |
|
Back to top |
|