Solved

How to set up PHP environment for Linux?

Posted on 2011-09-27
1
333 Views
Last Modified: 2012-06-21
Experts,

   I have a form that is comprised of lighttpd and php5 packaged with web server into an rpm. I have the task of editing this form to "make it look better" - add tabs to form. I have the location of the files. Where do I go from here? I am familiar with MS and IIS and setting up an environment to test out form updates, but unfamiliar in Linux (centos5)

Thanks Missymadi
0
Comment
Question by:missymadi
1 Comment
 
LVL 17

Accepted Solution

by:
psimation earned 500 total points
ID: 36711540
Centos5 *should* already come with PHP, MySQL and Apache pre-installed. I would suggest to leave the pre-installed versions unchanged.

The RPM package is a bit like a zip archive mixed with an .exe installer, which you can usually install fro the command line on Linux using commands such as rpm -ivh xxx.rpm.

If you don't have PHP, MySQL and Apache installed on the server already, you can try to install the RPM as per my above example, but if they are there already, I suggest trying to just extract the form from the rpm. On Windows PC, you should be able to open the rpm in Winrar and there you should be able to access the files packed inside. You can then extract only your PHP files and copy them to your centos server's web folder.

It may however be quite a task, depending on how the rpm is packaged, and more importantly, if the php app is packed with pre-configured PHP, mysql and apache with usernames/passwords etc.

If that is the case, it may be easier to just try and install the rpm and hope that it will overwrite the already installed versions on centos.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now