Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to set up PHP environment for Linux?

Posted on 2011-09-27
1
Medium Priority
?
344 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

783 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