Solved

How to set up PHP environment for Linux?

Posted on 2011-09-27
1
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Export Data from MySql Using PHP 16 67
history of pages 7 55
Code planning methods/tools? 5 58
How can I send attachment with mail 5 26
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

752 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