Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
when I pass the arguement using -DHAVE_PHP, the apache
is complainning that i don't have mod_PHP.so file.
*IF* you are using a new installation, and don't have any old php code, here is the way to solve the problem:
mod_php.so is actually refer to the older version of php engine (i think i'ts version 2.0). All the new linux distribution come with php version 4.0
instead of passing HAVE_PHP flag, try to pass the php4:
httpd start -DHAVE_PHP4
everything will work wonderfully.
Ohh, one more thing. Since I am new to the PHP business, at least on REDHAT distribution, apache is by default do *NOT* pass .html file to the php engine. If you have some .html file which contains some php code, you then need neither modify the httpd.conf file, or rename it to .phtml or .shtml file.
Another thing I noticed is that you need to put your php file within Apache's var/www/html folder (at least on Red Hat). You'll notice that your default Apache index page is in there ( /var/www/html/index.html). If you put a page called 'test.php' in this folder, such as your 'phpinfo();' script, your address bar in your web browser should be: