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.
First off, I wanted to say Great Forums!!! I have had many of my questions answered here.
Im a total n00b to linux, and im having a problem. I use RH9.
I downloaded/compiled(make)/and installed(make install) apache2 with no issues. (xxxx://220.127.116.11)
I then downloaded PHP-4.3.4, compiled/and installed it. I used the
./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs command, and it went off with zero errors.
I added the "AddType application/x-httpd-php .php" (minus the "") to the httpd.conf line
and copied my php.ini to the /usr/local/lib/php.ini Directory
When I go to view my phpinfo.php, it wants me to download it. (18.104.22.168/phpinfo.php)
I made another .php file called test.php (22.214.171.124/test.php) and it shows up as a regular html file.
Anyone have any ideas??
I've been using linux for about 5 days now....so im really lost.
i'm struggling too but here are some suggestions for you to consider. i've been using step-by-step how-to's and most of these suggestions come from them? many of the answeres to these questions are probably recorded on your infophp.php file <?php
1. do you have a line in your httpd.conf like this?
LoadModule php4_module modules/libphp4.so
2. how are you loading your modules? For example --enable-dav option will build and include mod_dav and --enable-so will enable DSO (Dynamic Shared Object) support.
4. what are your permissions setting on your appache root document directory and your phpinfo.php file? for testing purposes you could just chmod -R 777 the whole root directory (this would be really bad in other than a test environment) if you want to eliminate this consideration in a hurry.
i hope this helps. i'll post back if i get my php-nuke online.
it is important to note that you give path to apache source not already installed apache!
that installs php modules in /root/apache-1.3.28/src/modules/php4 and other required stuff, but lets focus on those modules installed in apache source dir. now all you have to do is to configure apache to use php4 module to do so, cd to apache source directory and configure it with the following option:
where src/modules/php4 is source where all php modules are kept. now one more very important thing that confused me and many other people as i have found out. namely there is no libphp4.a file! it will be created during the compilation, so don't worry. and do not give path to libmodphp4.a instead! that will cause an error! after you just type:
now just modify httpd.conf. don't forget to set register_globals = On in php.ini since it is disabled by default.
well i my case it works perfectly. i hope it will also do in yours.
hmm well you shouldn't receive any errors. if you are afraid that those errors may disturb your further work, maybe download the following compilers: ANSI C, Bison, Gawk and Flex, and try compiling php and apache once again. php uses those compilers so that may override those errors.