Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to PHP and currently working with XAMPP and Eclipse on Windows 7. I have another computer which runs Centos 6 and have the latest Apache and Mysql versions. I want to use that computer to run my PHP files instead of XMAPP. I'll will appreciate a simple explanation, as i said before i new to this.


share|improve this question

migrated from Mar 19 '12 at 15:53

This question came from our site for professional and enthusiast programmers.

Into which concrete problem did you run? Normally you just place the PHP files there, change the db configuration of your script and open it up in the webbrowser. – hakre Mar 19 '12 at 15:07
First you'd have to actually ask a question, and server setup is off-topic for this site anyways. – Marc B Mar 19 '12 at 15:07
@MarcB: As long as it's development related, it's ok to ask setup questions. – hakre Mar 19 '12 at 15:08
recomend there is huge amount of tutorials – B14D3 Mar 19 '12 at 15:59
Thanks to the helpers I already installed PHP in my server, and uploaded the database to PhpMyAdmin. The thing is, i want to continue develop on my Windows computer with eclipse PDT, meaning i have to define the Eclipse workspace to the server, but i don't know how. – user114638 Mar 20 '12 at 6:36

With Apache and CentOS, you can just install the PHP packages. yum install php

You'll want an FTP also, do go with yum install vsftpd

Then you'll need to configure the user accounts on it.

share|improve this answer

yum install httpd phpmyadmin mysql will install everything you need for the server. Copy paste the files in your C:\xampp\htdocs to /var/www/. Export your Database and Users from the Windows database and dump it into the one on CentOS using phpmyadmin. And you should be good to go.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.