how to install php on the web server

Posted on 2008-10-15
Last Modified: 2013-12-13
I have xampp installed on my computer with phpmyadmin 2.11.4, Apace, and mysql.
My website I created is all complete and running correctly on my desktop as a local host.  It's writen in php and i'm using dreamweaver.

My company has a webserver and I want to upload my work to the webserver.  The web server won't run php pages so I have some questions on getting this to work.

1.What do I got to do to get the sever to read my php pages?
2. Do I need to install xampp or mysql and phpmyadmin on my server?
3.I typed http://localhost/ in my web browser now to access my phpmyadmin how will this work with being on  a remote host?

Thanks and i'm looking forward to some help to these questions.
Question by:Cowboys00
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

by:Sander Stad
ID: 22721397
I have a few questions before I can answer your question:
  • Why are the PHP pages not running?
  • What kind of serversoftware is your company running? Is it a Windows or a Linux Server?
  • What kind of webserver is running on the server? Is it Apache or IIS?
  • Do they have a database server installed on the webserver or do you have to use a remote database server?
I'll try to answer your questions:
  1. Your server needs the PHP interpreter to run the PHP pages. So you'll have to install the PHP engine
  2. You don't neccesarily need XAMPP to run a webserver because if your company already has a webserver installed it could and will create problems
  3. If PHPMyAdmin is installed on the company webserver you'd probably be able to get to by typing in an address like http://companywebserver/phpmyadmin but that's all about how phpmyadmin is installed.
I hope this clears things up a bit for you. To give you some advice I would ask the administrator of your company's webserver what is installed on the server.
In the easiest case you only need to install the PHP engine.

Expert Comment

ID: 22721870
1.What do I got to do to get the sever to read my php pages?
A: First of you will need a web server installed. If you are running IIS its a pretty straight forward install to get php working. You will need to go to and download the latest stable version of of now its 5.2.6. Once you have it install it and at some point during the install it will ask you what web server you are running. Select IIS CGI. You may want to reboot your computer just for good measure and then try running a phpinfo page to test it out.

2. Do I need to install xampp or mysql and phpmyadmin on my server?
A: usually php works in correlation with MySql just because most programs written in PHP access a database...thats not always the case but a mass majority of the time it is. If you would like to edit your databases remotely via the web you will probably want to install phpmyadmin. But if you would like to be able to edit it from the web server and maybe another workstation inside the network i would recommend the MySql GUI Tools...its easy and free. ( )

As far as using xampp i dont see the point...the only thing that you will be missing out of that package if you do it the way I have told you is Perl and if you want that you can either install PerlActive State ( ) or if you decide to go with apache you can use ActiveState with it as well or you can use mod_perl ( ) xampp also has apache but you wouldnt need it if you are using IIS and I think that the install for Perl and PHP would be a little easier using IIS.

3.I typed http://localhost/ in my web browser now to access my phpmyadmin how will this work with being on  a remote host?

Try http://localhost/phpmyadmin/ 
That should be where you go to access phpmyadmin unless they have it installed in a different directory then it would be http://localhost/whatevertheotherdirectoryis 
If you are trying to access it from another machine then replace the localhost with the IP of the web server.

Author Comment

ID: 22723038
I haven't installed anything on the server yet evetthing in on my pc as a localhost.  My company said they will give me a webserver to install or do with it what I want.  I already have evertying working on my pc as a local host just trying to understand what to do to push it to the server.

on my pc I have the xampp tool with apace as my localhost server.  If I'm understanding correctly I'm  guessing from what you said that
1. I can install either IIS or apace on my server, or do I even one of these two since it is already a server?
2. download the latest version of php?
3. download mysql with phpmyadmin?
is this correct.?

on my localhost machine inside phpmyadmin I have some data in my databases. After succesfully installing these tools would I then export my data from my localhost phpadmin SQL database and import the data in my remotehost phpadmin Sql database on my server. Thanks
Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation


Author Comment

ID: 22723121
IT said that they were going to set my up with a protion of the web server for our part of the website.  Right now IT has IIS running on the server so I'm guessing when they set me up I'm going to have IIS as my server on the server it is also a windows server


Accepted Solution

thebradnetwork earned 125 total points
ID: 22723385
Q: I can install either IIS or apace on my server, or do I even one of these two since it is already a server?
A: If your running Windows 2003 Server you have IIS. If you have XP it has IIS as well but XP has a limited amount of connections it can handle. Given you are in a corporate environment I would assume that you are have 2003 Server. If i was you I would uninstall XAMPP because it installs apache and installs PHP to work with apache and you dont need apache since IIS you have IIS. (I hope that makes since)

Q: download the latest version of php?
A: Go and download is a link to the download ( ) select any of the links under United States. Next go download MySql here is the link ( ) download the one labeled "windows essentials". To get PHP and MySQL running you need to install MySQL and then PHP in that order. Both installs are pretty straight forward. With the PHP install again make sure to select the IIS CGI option when it asks what web server you are using and also it will bring you to screen that asks you what extensions you would like to MySQL ( its a long list).
Go check out the accepted answer on this other question:

You have some things that you need to check to make sure PHP is working after you install it.

Q: download mysql with phpmyadmin?
A: phpmyadmin is an a database manage tool that is web doesnt come with MySQL. Again I recommend  MySQL GUI Tools ( ) it has a database administator, query tool, and migration toolkit. But if you want to install phpmyadmin you will need to go to and download the zip file that they provide and then extract it into your root directory of your website. Both MySQL and phpmyadmin are used for the same things but I personally use MySQL GUI Tools mainly because it has a cleaner user interface and it is a lot easier to setup. You can configure GUI Tools to work remotely but you will have to make sure that during the install of MySQL that you select for the MySQL to be accessed remotely and you will need to open up or 3306 to access it outside the network. With phpmyadmin you wouldnt have to do that.

Author Comment

ID: 22727221
Thanks I understand what I need to do now. Thanks again.

Expert Comment

ID: 22727231
Anytime! Glad to help!

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Internet Business Fax to Email Made Easy - With  eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question