Solved

How to set up PHP environment for Linux?

Posted on 2011-09-27
1
335 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

770 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