ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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 pretty much a complete newbie in linux. I was planning to start learning how to program PHP and use SQL.
My problem is that i have absolutely no idea how to make PHP work in linux. my networking knowledge is pretty limited, so i don't know what i should do..
i do not wish to upload anything. just try it on my computer.
do i have to configure/use apache?
what configurations do i have to do to make my browser recognise PHP when run from my HDD?
any link to an extremely step by step guide or anything would be appreciated..
If you have Linux, then you can run your own Apache Webserver. Just make sure that it is only accessable from localhost. The default settings for your firewall should be sufficient to block anyone from accessing your webserver.
You can get apache and PHP RPM's from www.rpmfind.net. Just search for Apache and PHP.
Install the most recent RPM's for Apache and then PHP. It looks like you are using RedHat, and if so, it is a pretty easy install. There is an additional RPM for PHP that you will need to install if you want to use MySQL.
I can go into the specifics if you require. I did all this about 2 weeks ago when I reinstalled Linux on a new drive.
that would be appreciated.
i don't really know a thing about apache.
it seems like i have both apache and php installed. (whereis returns paths)
apache is in /usr/lib/apache and php in /usr/bin/php
how do i configure my server so that i can run php?
do i have to start the apache server in any way?
where do i put my .php files?
heard something 'bout editing httpd.conf. did this in windows some time ago. if so..what changes has to be made?
ah..,kinda figured parts of it out. simply tried http://localhost in my browser. believe i should put the files in /var/www
that directory contains directories for cgi, perl and html. how do i add support for php?