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 have problems integrating PHP with Apache, both of which are new ground for me, unfortunately the teach yourslef book I bought doesnt quiet relate to my installation and so im in a bit of a muddle. I installed from rpm,s. Ive done alot of work towards sorting my problem but im getting knowhere fast. Some of the directories the book the teachyourself book uses eg. /usr/local, are empty, so the examples and help are not helping me.
Ive run into this # cp php.ini-recomended /usr/local/lib/php.ini but in pretty sure this is going to be the wrong location on my installation. However the next line in the book troubles me more.
#cp libs/libphp5.so /usr/local/apache2/modules again a problem with where things are on my installation. eg. im not using usr/local and I have no apache2 directory that I can find. I also dont have libphp5.so.
On looking for libphp5.so ive found this seems to be normally derived from some configuration using apxs??? However I didnt install from binaries using config, make, make install. Because of mandriva rpm functionality I decided to use rpms.
I installed apache and it is up and running ok. Server version: Apache/2.2.3 (Mandriva Linux / PREFORK - 1mdv2007.0), running on mandriva 2007.
The book I bought "Sam's teach your self, PHP, Mysql and Apache" tells me I need to make sure libphp5.so is loaded as a module in httpd.conf. Obviously I cant do this. I Searched round my system and I found libphp5_common.so.5 in /usr/lib.
I suspect this is generated from the package libphp5_common5_5.1.6-1.6mdv2007.0, is this what I need to put in httpd.conf?
Mandriva tells me that apache-mod_php-5.1.6 -2mdv2007.0 is used to integrate php into apache but obviously with no module being loaded via httpd.conf this is not happening. Tested by putting a .php script into /var/www. No luck.
Ive spent hours on this searching the net and getting knowhere. Any help is much appreciated.
ok it seems I need this mod_php5.so in httpd.conf the question i now have is this. the file is symbolic linked in httpd/extramodules so do i do the .conf entry like this? LoadModule php5_module extramodules/mod_php5.so or do I move the file into httpd/modules? What is correct?