Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to install php on the web server

Posted on 2008-10-15
Medium Priority
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
  • 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 php.net and download the latest stable version of PHP...as 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. ( http://dev.mysql.com/downloads/gui-tools/5.0.html )

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 ( http://www.activestate.com/Products/activeperl/index.mhtml ) or if you decide to go with apache you can use ActiveState with it as well or you can use mod_perl ( http://perl.apache.org/ ) 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.


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 500 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 PHP...here is a link to the download ( http://us3.php.net/get/php-5.2.6-win32-installer.msi/from/a/mirror ) select any of the links under United States. Next go download MySql here is the link ( http://dev.mysql.com/downloads/mysql/5.0.html#win32 ) 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 install...select 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 based...it doesnt come with MySQL. Again I recommend  MySQL GUI Tools ( http://dev.mysql.com/downloads/gui-tools/5.0.html ) it has a database administator, query tool, and migration toolkit. But if you want to install phpmyadmin you will need to go to http://www.phpmyadmin.net/home_page/downloads.php 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

581 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