Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm new to this forum and needing assistance with a peculiar issue of our Apache and PHP installations on CentOS 5.3. We are setting this up as a virtual machine and had a few questions that we can't find answers for elsewhere.
1. We are using the default CentOS configuration of Apache and PHP. How can we use ./configure to properly configure PHP? So far if we run the command we get the error that the file or directory doesn't exist.
2. Should we yum erase php, yum erase apache, then download the source files and install with our on configuration?
I'll be happy to attempt answers to questions in helping us out.
(BTW - I'm a sys admin with little programming experience. This post is to assist our web programmer coordinator in creating a base CentOS installation with Apache and php and to determine the correct way to configure it.)
Let me try to explain. We've installed a "default" CentOS 5.3 onto a VM. We found php isn't installed, so used yum and pulled down 5.2.1. As we noticed differences with the installed configuration, we tried to use the ./configure script to set the VM the same as one of our production servers (we are creating the VM to be a template for future VMs).
Anyway, we found that ./configure won't work. When trying to find a php folder, there isn't one, nor is there an apache2 or apxs folder. What we are guessing is that since we haven't downloaded, installed, and configured our own php, that the default doesn't configure right either.
So I guess it would be better to say, we want to know what would be the best solution for us to install apache, php, etc.?
The mostr solid soln is to stick to yum. It'll put things in the right places, install dependencies ( and updates when the time comes).
Don't mix hand-built with a pkg mgr system if you can help it.
Different distros/versions may install slightly differently, so you want to decide which 'std' you want to go with.
If yu have a specific problem tell us what it is and we'll help.
You may need to install more modules, or just adjust a cfg file (not the same as install ./configure; that's just for src/hand built installs).
I think that is where we stand right now, defining our standard. I'm still new at working with Linux, however I do find that yum was easy to learn and use. Our issue is that it seems to load a log of stuff in the config that we don't want to have in our standard.
So, seems like we need help on how to properly remove php and reinstall it with the source so we can use our own configurations. (I found yum erase php, but will it completely remove php?)
From another forum, we received this bit of "advice" as well...
"It's not exactly the same thing. Yum is simply a quick way to install RPMs, which are pre-made packages. There are some pre-made PHP plug-ins that you can install with yum like php-gd, which is SORT OF like configuring PHP. If there are any plugins that you need that are not available via yum, then you're a little out of luck (if you're just relying on yum).
In my opinion, it's far better to go through the hassle of compiling source instead of installing via yum or another package manager. That way, you end up with the latest, most secure version of PHP and you have all the flexibility you want, and usually better performance. I know that the default Yum install of PHP on CentOS systems, for example, is several versions behind."
Like I said, still learning things, so I depend on those of you with greater knowledge to assist us.
1. hand built means handling all dependencies yourself AND forever after manually keeping an eye on the src site and rebuilding whenever they announce a new version & watch out for dependencies each time.
2. Actually, RH (therefore centos) backport critical updates, but don't update the major version number; you have to look at the patch nums/release notes if you want to check for a specific 'fix', or just try something that will expose it.
Most things you'll want to do are available by just amending the the relevant cfg files; but you'll get better help if you
a) decide what features you need
b) if you get a problem, show us the specific issues/cmds/msgs involved. General advice is pretty useless when it comes to computers.