LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 09-06-2007, 02:23 PM   #1
Shane Roach
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Rep: Reputation: 0
LAMP problems with debian etch on Dell laptop


I think I need a good reference for ground up settup of LAMP. I looked around and folks made it out to be pretty easy -- basically a matter of installing PHP, MySQL and Apache. The more I got into it though, the more complex it got. There are like... pieces of apache, and so forth, and also tools for administration.

For a long while my problem was PhP scripts did nothing when hit from my machine, meaning I did not think Apache was set up right and PhP was not being processed. I added a line to httpd.conf to # include /etc/apache2/conf.d. I forced reload and all of a sudden now when I hit a PhP file locally it spurs some sort of loop where the page is opened again and again. (No, it is not in the PhP script itself. It is a simple echo command)

I changed things back the way they were and reloaded apache and now it STILL does this strange cycle. In desperation I went back to my Windows roots and just rebooted but it made no difference.

So anyhow, like I said I think I just need a ground up installation and configuration guide for LAMP if anyone happens to know of a good one. I have been perusing the internet for one for about 10 hours now give or take over the course of yesterday and today and nothing really helpful is coming from it.

Thanks in advance for any suggestions.
 
Old 09-07-2007, 07:33 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
http://www.howtoforge.com/ubuntu_debian_lamp_server
http://linux.justinhartman.com/Setting_up_a_LAMP_Server

Really should be pretty straight forward.. especially if you install everything at the same time.


apt-get update
apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin
 
Old 09-09-2007, 09:27 PM   #3
Shane Roach
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Ya, got that part. Believe it or not, what I did not know was that I had to have the files I wanted to view locally either in or softlinked to a particular directory for them to be observed in a browser as actual web pages. I thought I could stick them anywhere on the machine and open them with the browser to get the page. Indeed, some basic *.htm pages worked exactly this way, but anything needed php did not.

So you see, clearly I have a ways to go. Thanks for your attention though.
 
Old 09-10-2007, 04:08 AM   #4
dark_angel
Member
 
Registered: Oct 2006
Location: Bacolod, Philippines
Distribution: Slackware 12
Posts: 62

Rep: Reputation: 15
you should tell apache to feed all *.php files through PHP. try adding this line in your httpd.conf:

AddType application/x-httpd-php .php

also, try this http://lamphowto.com/

good luck!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper - debian etch - dell wireless 1390 radiodee1 Linux - Wireless Networking 21 09-10-2007 09:26 AM
Compaq V5305WM Laptop, Debian Etch, can't connect to wifi bubazoo Linux - Wireless Networking 3 04-19-2007 07:33 PM
LXer: Configuring Debian/etch on a Dell Latitude D520 LXer Syndicated Linux News 0 04-16-2007 07:46 PM
Help requested getting two Dell LCD monitors working with Debian Etch running KDE Phoenix_Zero Linux - Software 12 02-09-2007 11:24 PM
Debian etch LAMP Server initialdrifteg6 Debian 3 02-05-2006 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration