LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-10-2004, 04:30 PM   #1
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
Debain (sarge) Basic How To's


Hello All,

I want to start off by saying that I as new you can get to Linux. I wanted to document some of my progress with this Distro and I thought I can help other newbie’s. I haven't seen a lot of info dedicated to sarge and it took me a while of searching to find what I did. I have been documenting all of my progress with a configuration of a dedicated server in scripts and now I want to put it in one place. I am going to start of with the basic's configuration of apache, mysql and php.

So here goes……… please add to what I have and tell me if you want more.

###################
# Install Steps
#
# First let’s make sure your packages are up-to-date
#

apt-get update
apt-get dist-upgrade

#
# I’m not assuming anything so let’s make sure we have ssh installed so
# we can remote login
#

apt-get install ssh

#
# Now what I do next is make a user account that I can log into and deny # ssh logins to ssh from root for security issues
#

adduser user

passwd user ‘and give yourself a password’

#
# Now make sure you can login to the user you just made
#

su user

#
# Ok, exit that user and remove root access from ssh
#

exit

vi /etc/ssh/sshd_config

#
# Change PermitRootLogin from yes -> no
#

PermitRootLogin no

#
# Make sure to save your work
#

Ctrl + :

wq 'enter'

#
# Now login to ssh with a client, I like putty, you'll have to login in with the # user accout you made above
#
# Now that your login with a non-privliged user you'll want to switch to root
#

su root 'and give the password for root'

#
# Ok, now that's out of the way lets start installing some apps
#
# We will start with apache/mysql/php install and then test them.
# I added a couple of other things I'll need in the future
#

apt-get install apache apache-ssl apache-dev mysql-client mysql-server mysql-common php4 php4-imap php4-mysql openssl ca-certificates

#
# Test apache
#

http://"your-ip-address"/

#
# You should see the place holder page
#
# Create a an admin account for mysql and test it
#

mysqladmin -u root password 'password'

mysql -u root -p "enter password given above"

exit;

#
# Now, we make a test page for php
#

touch /var/www/test.php

chmod 755 /var/www/test.php

vi /var/www/test.php

<?
echo("<h1>PHP and Apache Works!</h1>");
?>

#
# Make sure to save your work
#

Ctrl + :

wq 'enter'

# I like to restart apache now to make sure everything is ok
#

/etc/init.d/apache restart

#
# Now, test to see if PHP is working
#

http://"your-ip-address"/test.php

#
# You should see a nice greeting telling you that PHP and Apache Works!
#
###################
 
  


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
Installed Debain Sarge, Xserver resolution rossjman1 Debian 10 06-18-2005 12:53 AM
Sound Config on Debain Sarge doctorwebbox Debian 8 05-24-2005 12:12 PM
Guide to Display Chinese in Debain Sarge NanoFxJ Debian 3 04-05-2005 05:21 PM
How to's zWaR Linux - Newbie 2 02-22-2004 09:51 AM
mplayer HOW-TO's air_vin General 1 09-11-2003 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration