Simple question about php hosting.

They have: 1 posts

Joined: Dec 2006

My situation is this.

I recently acquired a hosting service with 5Gb of space, etc, etc via godaddy.com. Their server hosting use Apache 1.something. My question/problem is this. The website I'm building, is going to use php, and does that mean the provider (in this case, godaddy) should provide the php already installed, or do I have to install it?

And if the case is I have to install it, I just dump all the files from the download at the php website, and from there I access some .ini file.

Am i doing it right? is this what i am suppose to do? I'm fresh off the boat at this. any help at all is truly appreciated.

(sorry of this thread is at the wrong site for i have not lurked at all)

They have: 18 posts

Joined: Jul 2005

Yeah, if Go Daddy's worth the money that you're dropping for it the it should already have PHP installed natively (considering it is free and all). That said, you're going to want to download PHP and Apache (at least) to your computer as well. I mean, unless you want to upload your files to Go Daddy every time you want to test them.

You can download Apache for local use here. The installation for 2.2.3 on Windows is actually quite easy. Just remember that both your "Network Domain" and "Server Name" are both "localhost" and that the e-mail that you give does not have to be real. You can test to see if you installed it correctly by typing in "http://localhost/" in your address bar in your preffered internet browser. It'll let you know if it works.

For installing PHP: I'm reading an excellent PHP book called "PHP Solutions: Dynamic Web Design Made Easy" which makes refrence to a supplemental site that has simplified instructions for installing PHP 5.2.0 for Windows. Test it by sending a file to C:\Program Files\Apache Software Foundation\Apache2.2\conf\ (if you're using Windows) called phpinfo.php (note the file extention). The file should contain the following:

<?php phpinfo(); ?>'

Type in "http://localhost/phpinfo.php" in your browser of choice. You'll easily be able to see if it works. (You may have to restart Apache before running that test successfully.)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.