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.
Hi everybody, I have just installed Mandrake 9.1, and this is the first time I've ever dealt with linux. I got a project involving PHP & mySQL. When I installed Mandrake, there the option for installing Apache and mySQL (I chose those options), however, there's nothing about PHP.
I just need some guidance regarding these following questions:
1. Do we have to install something like a PHP editor/compiler?
2. How to access mySQL? i.e. create tables, query
3. As a windows user, usually we have a virtual directory (under inetpub\wwwroot). Does that concept also apply to linux? If yes, where is the location of the virtual directory?
Apache is installed, so you can now install PHP. You will uncompress the PHP package, giving you a directory named "php-4.3.2". You must change into this directory. Use the standard UNIX/Linux way of building and installing software from source; configure, make, and then make install.
To add PHP to Apache:
You must also edit the httpd.conf file which is usually located in /where/ever/apache/conf. You must add the following lines:
# This will load the PHP module into Apache. Put this line
# with other LoadModule lines.
# This next section will add a handler for .php files, put it with other
# IfModule lines.
AddType application/x-httpd-php .php
Oooops. If you are totally new then I guess you don't know how to untar a file yet either?
tar zxvf filename.gz
Here's the steps I followed for an oracle database.
# tar zxvf php-4.3.3.tar.gz
# cd php-4.3.3
# ./configure --with-oci8=$ORACLE_HOME \
# make install
# cp php.ini-dist /usr/local/lib/php.ini
Hopefully you will find the proper config method for MySQL
Thanks alar for your information. However, I'm still struggling with the basic stuffs.
Here are some of them:
1. I can't access my cdrom and floppy disk. I go to /mnt, and there are /cdrom & /floppy, however, when I access it, it's empty (I have CDrom/floppy in their respective drive). Even the LED doesn't light when I access the cdrom/floppy, i.e. it deosn't seem that the system is accessing it.
2. How to check that the apache has already running properly?
3. How to access mySQL? Does it have a GUI like Microsoft SQL Server 2000?
Fixed that. I haven't start MySQL on the service (Stupid!)
Anyway, I installed MySQL, PHP and Apache all from Mandrake 9.1 packages. Now I need to set some configuration which involves the knowledge of the directories in which they are installed. Can anyone help me with the default directory which MYSQL, PHP and Apache are usually installed?
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
If a Mandrake user does not respond with the directories that these are installed in, you can use find to see where they might be:
If you are totally new to Linux you may not know the which command
It will find a program in your path. Especially to find something like apache
which is typically in an /sbin (only visible to root)
you should probably execute as root.
su - root
I think it's called apache on windows, but on (Li)nux it is httpd
The su with a '-' is to inherit the variables (.profile) of the user u wish to become
BTW- http://localhost points to the directory defined in your httpd.conf as DocumentRoot
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
Thanks guys! Now I can display a PHP page. However, there's 1 problem:
If I used the default localhost as defined in httpd.conf which is "/var/www/html/", my test page (which is test.php) will be displayed correctly in the browser (http://localhost/test.php)
But when I changed the DocumentRoot into any other path (let's say "/var/www/HR/", test.php won't be displayed. Instead, it gives me error 403 Forbidden. I figured that in the default localhost there's a directory called "addon-modules" which contains ".htaccess". My guess is that ".htaccess" is the one that is controlling the permission. Well, I have tried duplicating that file into the "/var/www/HR/addon-modules", restarting apache, but I still got the same error (Forbidden).