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 had a working web server with PHP, which a friend of mine help set up. He’s been afraid of compiling from source in Linux. We had apache 2.0, php5, mySQL5 and everything seemed to be okay. One of our web guys told us we were missing GD. After some work, I saw that it won't configure in the PHP rpm that was installed.
With much digging, I was able to get PHP to compile, found all the dependencies and fixed them all right up. PHP and it added its module to apache. Then apache stopped giving me pages. White pages were all I got at home (I did all of this over putty). I restarted the server, and then httpd wouldn't start. The weird thing is, it does not provide an error message in terminal. When I start it from the service manager it only reports 'httpd could not start'
I tried bringing it up to 2.2. Downloaded and compiled source, no issues there, But it still won't start.
Any help would be much appreciated, and I’m going to see if I can answer other questions in the forums now that I feel confident enough to.
I’ve deleted the apache2 directory, and removed apache dependencies (mod_perl and the httpd_manual) and I still can't get the RPM I have to install. I downloaded a fresh tarball, verified the file signature, and remade the whole thing. Looks like no change so far. One thing that came to mind, maybe the httpd.conf fine is still not right, maybe I missed something when I edited it. Any recommendations to bringing that back to defaults?
Since this morning a couple of things have happened. I was able to get apache to compile again, (had to use a -nodeps to remove it. Which caused for a very messy time recompiling apache and PHP. Both have been recompiled.
the PHP module has been added to the httpd.conf file, and the module was put in the proper directory. I also included the AddHandler .php and put the virtual hosts back in.
so apache starts and stops, but it does not appear to be parsing through PHP (getting code when i try to visit the sites.
I greatly appreciate your help, (as well as anyone else who may post here) and I’ll check in the morning.
I checked that, and I did some more snooping around, I made sure that the httpd.conf file that doesn’t work only has these changes, then I commented out each one at a time. And it refuses to load libphp5.so (when that’s commented out, apache starts w/o php) Which makes it difficult to get PHP to work. I cheeked to make sure that the file actually exists, but beyond that I don't know how to test or debug it.
Finally, I've also started looking for an RPM that has GD, (which is how all of this got started in the first place), and I think I have found one, but I'm having some issues with circular dependencies when I go to install it.
Figured out how to solve the circular dependencies. it is possible to use rpm to remove or install multiple packages. , so i did jsut that. Have semi-working version fo PHP on the server now.
the server is acting as if the virtual hosts are not working right. I'm using name based virtual hosts, and i added the virtual hosts , bust sitll no doings. I thught I used my backup file of the httpd.conf file already, but i did not, and when i replaced that, Apache started up like a charm. with PHP support.
PHP still needed a kick in teh ass, i remebered earlier in my troubleshooting i replaced the php.ini file with the backup i made before teh whole installation process, so i put the original php.ini file back, and it started up with GD support.
Finally, i needed ot install a couple of packages to connect everything back to my SQl, and presto,