LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-30-2007, 01:44 PM   #1
harrybazeegar
LQ Newbie
 
Registered: May 2007
Posts: 13

Rep: Reputation: 0
Arrow Help needed setting up LAMP on my PC


hi

i am new to linux environment... only abt 4 weeks of exposure...

well i want to be able to create php pages and test them on my computer...
further i want to be able to use a MySQL database on my computer...

i have downloaded the sources of Apache 2.2 , PHP 5.2 and MySQL 5.0

i installed Apache and it is working fine for html but i am not able to configure it for PHP... please help me

thank you
 
Old 08-30-2007, 03:21 PM   #2
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 307

Rep: Reputation: 31
What distro did you install?

Next.... if your a 4 weeker, why not make life easy and install the rpm packages as opposed to compiling, making sure includes are correct, etc.

I took 2 seconds 2 google and found "http://lamphowto.com/". Notice the first large box;

Quote:
You should only be doing a source-based installation if you need to alter settings in one or more components of the LAMP stack (e.g., you need a feature in PHP that isn't in the default RPM). If you are just getting started with LAMP, use the binaries provided by your distribution - it is much simpler, and a lot easier to upgrade later.
Doesn't get much clearer than that.

Good luck ....
 
Old 08-30-2007, 03:56 PM   #3
harrybazeegar
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
actually i have experience installing from source.. what i cant figure out is

1. does it matter whether i install Apache first or PHP or mysql? Is the order important or it just doesnt matter?
2. once i install apache and PHP what do i do to make apache detect PHP? i know i gotta play with httpd.conf but i dont get what i gotta do

Well i use OpenSuSE 10.2

at lamphowto.com they are using apache 1.3 , PHP 4 and mysql 4

i am using apache 2.2.0 , PHP 5 and MySQL 5

does it make any difference that the versions are not same?
 
Old 08-30-2007, 09:46 PM   #4
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 465

Rep: Reputation: 36
hi,
As far I know just follow the steps in that link and add the two lines in httpd.conf as it said then put the php files in the DocumentRoot. I hope that should work. As I haven't used opensuse but I think those settings should be same on all distros.
 
Old 08-31-2007, 12:25 AM   #5
harrybazeegar
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tanveer View Post
hi,
As far I know just follow the steps in that link and add the two lines in httpd.conf as it said

Two lines? first would be the AddModule one.. what is the second one?

Quote:
Originally Posted by tanveer View Post
then put the php files in the DocumentRoot. I hope that should work. As I haven't used opensuse but I think those settings should be same on all distros.
which php files do i need to put in the Doc root? do you mean the files I write or the ones included with the php bundle?
 
Old 08-31-2007, 01:18 AM   #6
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Rep: Reputation: 17
The order of installation does matter when you compile-install from source files, you just have to install php as the last thing.

You can install the other two in whichever order.

The page sir-lancelot introduced looks really good to me. But if you get stuck post reply here and I'll try to help you out.

P.S I will post full LAMP setup procedure soon, maybe this weekend, so you can wait and see if you cannot figure it out by then.

Last edited by rlee923; 08-31-2007 at 01:20 AM.
 
Old 08-31-2007, 02:36 AM   #7
harrybazeegar
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
k i figured it out.... thanks any way
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Professionals Help Badly Needed!! About LAMP glence Red Hat 1 08-31-2007 10:14 PM
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
Setting up LAMP, issue with Mysql Doug.Gentry Linux - Software 2 02-22-2006 06:13 PM
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 04:05 AM
setting up a LAMP server in Slackware 10.0 yolopollo Slackware 2 07-23-2004 03:32 PM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration