From Windows to a Debian GNU/Linux desktop, sans the geekness
The Original - since June 2006 - Run Debian GNU/Linux and be Happy.
If we're eating dinner and "Rosie" by Jackson Browne comes on, dinner halts and my daughter and I dance. Rock on.
 

this site  web    
The Goods
Home Page
Forum
debiantutorials.org Licensing
Website Disclaimer
Site Map
Links
w32codecs
How to really switch Mom to Linux
Documentation
Release Notes
Developers Reference
Debian Survival Guide
Debian Books
Manuals
Debian Security
Linux Dictionary
Leaving Windows
Resize Windows Partition for Dual-Booting
Back up your Partitions, Imaging
Still Suffering Windows
Keep your Money, your Sanity and your Self-Respect
Installing Debian Etch
Debian GNU/Linux (Etch) Installation Tutorial
My Etch Desktop in 150 words or Less
Upgrade Sarge to Etch
Configure Debian Etch
Multimedia on Debian Etch
Install nVIDIA 3d driver on Debian Etch
Wireless on Debian Etch: Broadcom - bcm43xx
Klikit, Klikit good
Handy Little Things
Package Management
Peripherals & Debian Etch
Set up your web cam on Debian Etch
Printing in Debian (Browsers, too)
Your ipod on Debian Etch
Atheros Wireless
Broadcom Wireless
Etch on the Desktop
Visitors apache log reader
Andrea del Sarto
(Poetry snippet for your Ignorant Ass)
Beagle on Debian Etch
Convert Digital Camera .mov Files
Some Debian Etch System Files
My Debian Desktop
Using wget
Copying or Ripping DVD's in Linux (Debian)
Reset root password
So, you want to run Linux
Convert mov files
Securing Debian
Password Protect Grub Boot Loader
Debian Etch as Server
Debian Linux file and print server: NFS, CUPS, LPR
Stream your music with gnump3d
Simple local web server on Etch
Web Server on Debian Etch
Miscellaneous Linux
Linux Conventions
Can People read my Documents?
Install Software on your Linux System (Debian)
Partition your Hard Drive
History of debiantutorials.org
A School Without Windows (PDF)
How to talk to Tech Support
Linux Demystified
Off Topic
A DRM Dissertation
An Artist's take on Downloading Music
An Insane and Damaging lack of Understanding
On Children and Drugs
On Visitor Q
Intellectualism for the Masses
debiantutorials.org stats
Smart Crows
How old are We?
Why we run Debian
How not to ask an egomaniac like myself for an article
Sarge Specific Tutorials
Installing Debian Sarge, net install, no DHCP
Easy Graphical Sarge Installation Tutorial
Rebuilding my Debian Sarge Machine
Multimedia for Sarge
w32codecs
nVIDIA on Sarge
Trouble Burning discs: cdrecord
Athcool on Debian Sarge
Where are my Newly Installed Apps?
Easy LAMP on Debian Sarge
Archive
Sites Worth a Look
Debian Mailing List
spidercider
Linux Comparison at PolishLinux.org
Thin Clients
Common Commands
Common iptables Filtering
iwouldntsteal.net
Big-Ass iptables info Page
iptables Port Reference
README: Firewall
General Security Tips
Newbie Security
Kickass RFC's
Data Breaches
Hemp Seed Oil
linux-hardcore.com
Search for a local Computer Tech
Evelyn's Linux Cheat Sheet
Lotsa (687) Linux Commands

Favorite Utilities

Super Grub Disc
System Rescue Disc
News Feeds
visitors run
operating system
Linux
Windows
Mac
Unknown
BSD
54.8 %
39.8 %
3.40 %
1.50 %
0.10 %

web browser
Firefox
Mozilla
IE
Opera
Epiphany
41.4 %
25.1 %
15.8 %
8.40 %
3.50 %
updated 17apr08
What's Root?
Root is the super-ultra-mega. All system commands on a Linux box need to be done as root. This means installing software and changing files not in your /home directory, etc. In your terminal, if you're logged in already become root by typing su at your $ prompt, then the root password. Log in the system directly as root from a terminal, but not the graphical login. # shows root.
dediantutorials.org is ad-free
debiantutorials.org has always been and will always remain ad-free I make no unrealistic demands that you "owe me for my time and bandwidth" in order to use my site. I detest all those scumbags out there that think that they are owed something for putting a web site up. I do debiantutorials.org because I love it. You owe me nothing.
If you can walk and chew gum at the same time, you can run Linux

    Friday, May 09, 2008      Contact  Etch Info  what's new in Etch  Linux Demystified  Our Forum
Quick and easy local web server on Debian Etch PDF Print E-mail
Your home LAN
Written by Administrator   
Friday, 25 May 2007
Running an web server on your desktop may be a handy thing. If you like to take advantage of some of the terrific functionality afforded to web scripts, like a movie database or something related - then maybe running a web server could make sense. I run a web server on the box that also serves up file and printing services to my LAN. We like document managers and the like as well as contact managers, inventory and personnel managers, calendars, etc. There is a whole world of terrific programming and function available to you in the form of php/mysql scripts.

Running a local web server is no sweat. Since it's not served up live to the world, meaning that anybody could "surf" to your locally run web sites, you can relax a little with security. Leave defaults alone. However, should you decide to host your own web sites locally that the world may visit then you had better get your security kung-fu hat on. Here is another tutorial for setting up a web server on Etch that is OK to serve up beyond locally, however, please put your security hat on.

I run a server on a Debian Etch box. Simplest thing in the world to set up. Command line action as simple as cut and paste. For all of you following along, here is what I just did to get LAMP going locally on my laptop. Keep in mind that I will be removing all of this, I only just installed it in order to write this little ditty up for some friends.

# apt-get install phpmyadmin php5-gd php5-mcrypt php-pear mysql-server

You'll see results like the following:

Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5
  libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libgd2-xpm libltdl3
  libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq4 mysql-client-5.0
  mysql-common mysql-server-5.0 php5-cli php5-common php5-mysql
Suggested packages:
  dbishell libgd-tools libcompress-zlib-perl tinyca php5-dev php4-dev
Recommended packages:
  apache2 httpd
The following NEW packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5
  libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libgd2-xpm libltdl3
  libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq4 mysql-client-5.0
  mysql-common mysql-server mysql-server-5.0 php-pear php5-cli php5-common
  php5-gd php5-mcrypt php5-mysql phpmyadmin
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.7MB of archives.
After unpacking 126MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Of course, type y and then hit enter. In a moment my new LAMP stack was in.

The only configuration of files that I did was to

#nano /etc/php5/apache2/php.ini

I searched for mysql by hitting ctrl+w. Then I un-commented

;extension=mysql.so
;extension=gd.so

both the mysql line and the gd line by deleting the semi-colons. Save and close the file and run

# /etc/init.d/apache2 force-reload

I next exited from my root terminal in order to change my admin password for mysql. I issued the following command:

$ mysqladmin -u root password [password] as a regular user.

Next up, I alt+tab'd to my open web browser, ctrl+n for a new tab and entered the address for the local default Apache2 web site: http://127.0.0.1.

There I was reading all about my new web server. To get to phpmyadmin just go there like this:

http://127.0.0.1/phpmyadmin

Cake.

Remember, this is local, just for you and your LAN if that's where you set this up. There are a whole mess of things to discuss further should you want a live web server or should you require troubleshooting. That's what the forum is for.

This a very simple, quick install. I use Joomla for a bunch of sites. In order for me to really use Joomla I have to install more than this simple tutorial covers. What we have here is just the tip of the iceberg.

--machiner   25 may 2007





Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
Trackback(0)
Comments (2)Add Comment
web server...
written by steve, February 07, 2008
Hi !

On the very first box marked #nano/ect/php5/apacche2php.ini, you uncommented ;extension=mysql.so
;extension=gd.so... What did you remove ? the ; perhaps ? Also what line # is it, I only found it writtin as an "Example."

Thank you.
Check your email :)
written by machiner, February 07, 2008
Depends how LAMP is installed - some distros tweak so this isn't necessary. Some don't. On my own server install, described on debtoots, it's necessary. I have received reports that this is moot. Some visitors have told me that they can't even find mysql.so to uncomment.

When I install LAMP it's always there, always necessary. Fill me in with specifics and we'll tweak what's necessary in any article on the site.

Write comment

security code
Write the displayed characters


busy
 
Creative Commons License © debiantutorials.org Thanks for dropping by. I hope you have found this site to be helpful.   Search for a local Computer Tech  debiantutorials.org