Auto Loans - Loan - Web Advertising - Camilo Jose Cela - Gift Ideas

PDA

View Full Version : Indstalling PHP


Dolin
Dec 3rd 2007, 4:02 am
Hi how do I install Php in easy steps. I have downloaded windows binaries for php5 and extracted the files. What are the next steps?

nico_swd
Dec 3rd 2007, 4:12 am
The easiest way is using XAMPP. It comes with Apache/PHP/MySQL and everything you need.

http://www.apachefriends.org/en/xampp.html

Dolin
Dec 3rd 2007, 4:28 am
I'm looking for a one click way to install php. After I read the manual, all I get is more downloads and install. And they didn't specify where to download them. I'm running Windows XP Pro. What do I need to download in order to have php running on my computer?

nico_swd
Dec 3rd 2007, 4:35 am
If you want to go the difficult way.. then you need to download Apache first.

http://httpd.apache.org/download.cgi

Here's a tutorial that might help.
http://www.php-mysql-tutorial.com/install-apache-php-mysql.php


You need a (local) web server in order to use PHP. Unless you want to use it via command line.

Brewster
Dec 3rd 2007, 4:47 am
I use http://www.uniformserver.com - there's nothing to install, just unzip, run the server start batch file and away you go..

Brew

Dolin
Dec 3rd 2007, 5:49 am
Do they make installing php so difficult? There are so many new terms. I don't even know what apache is. What even is binary?

Kerosene
Dec 3rd 2007, 6:07 am
Do they make installing php so difficult? There are so many new terms. I don't even know what apache is. What even is binary?

Apache (http://en.wikipedia.org/wiki/Apache_HTTP_Server).

I think you might need to take a few steps back and do some reading before you try installing PHP in your own computer. In my opinion, XAMPP is by far the easiest way to install everything (Apache, PHP, MySQL etc) with a few clicks, it's far from difficult - but you might need to slow down and rtfm (http://en.wikipedia.org/wiki/RTFM). :)

Antoledo
Dec 3rd 2007, 6:12 am
You can install php with just one click using WAMP ( search for it on google, I can't post the link because I haven't got enough posts ). Or you can use the hard way as nico_swd said 2 posts back.

Dolin
Dec 3rd 2007, 6:15 am
Hi thanks for all the suggestions. I still think installing php is difficult. The language might be easy.

I have downloaded windows binaries and apche 2.2.6 and now I read on the web that the installation procedure is different for 2.0 and 2.6. It's driving me crazy.

Can someone give me a link to a webpage that has all the downloads and the manual in the same page.

Kerosene
Dec 3rd 2007, 6:22 am
Why don't you just try XAMPP? It literally takes a few clicks to install it. (http://www.apachefriends.org/en/xampp-windows.html#522)

nico_swd
Dec 3rd 2007, 8:13 am
Yes... just install XAMPP. It's SO easy... and later you don't have to bear with PhpMyAdmin and everything... Installing it is like going through hell.

With XAMPP you don't have to worry about anything. It installs everything for you.

Dolin
Dec 3rd 2007, 9:28 am
Hi thanks for the links. There are so many links on the XAMMP page. Which one do I download? Is it the windows 1.6.4 (I don't understand this) installer, zip ore exe?

nico_swd
Dec 3rd 2007, 9:34 am
Install this.

http://www.apachefriends.org/download.php?xampp-win32-1.6.4-installer.exe

Dolin
Dec 5th 2007, 7:11 pm
Hi I have installed xampp installer for windows 1.6.4. What next? My computer still can't open a .php file.

Kerosene
Dec 5th 2007, 8:14 pm
Have you read the Apache/PHP documentation?

Apache needs to be up and running, and you need view your php files from localhost, something like: 127.0.0.1/myphpfile.php

Dolin
Dec 5th 2007, 8:36 pm
Hi thanks. I am able to access my local host. I have learn PHP language and written a file in notepad and saved it as a .php file. How do I open this file? Do I need to upload it to localhost? If so how do I do that?

Kerosene
Dec 5th 2007, 9:44 pm
It's all in the XAMPP docs.

http://www.apachefriends.org/en/xampp-windows.html#1168

The main folder for all WWW documents is at \xampp\htdocs. If you put a test.html file here you can browse for it at http://localhost/test.html (if Apache server is running). Use the same procedure with all PHP or cgi files.

Dolin
Dec 6th 2007, 3:55 pm
Thanks kerosene. I am able to open my .php file in localhost now. I have some further questions, is it possible to open our php files with a program like we open our html files with internet explorer?

Kerosene
Dec 6th 2007, 7:37 pm
You can edit a php file in just about any text editor.

If you mean viewing the output of a a php file, you can use any browser.

If you mean something else, then I don't understand your question.

Dolin
Dec 8th 2007, 11:43 am
What I mean is I can open my php file by typing the address localhost/.php. Can I save my php file in my documents and double click it to open the file?

websea
Dec 8th 2007, 1:05 pm
Hi,

i can give you best way to install php. go to www.wampserver.com, download the package and than extract it. php mysql and apache all will be insalled within a minit.

config_error
Dec 8th 2007, 11:14 pm
Use appserv its much easier to install php,mysql and etc.. all in one package.