Set up Apache, PHP, MySQL for Webserving Drupal
(If you're starting from the beginning, download a starter CD.)
Note: Take time to look at each statement and what it runs.
All of this is from: http://www.howtoforge.com/perfect_setup_debian_etch
apt-get install ssh openssh-server
vi /etc/network/interfaces
In there, this is the important part to change:
auto eth0
iface eth0 inet static
address 192.168.0.100
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
/etc/init.d/networking restart
vi /etc/hosts
In there, something like this:
127.0.0.1 localhost
209.51.180.22 gramsci.mayfirst.org gramsci
209.51.180.24 mendes
209.51.163.6 peltier
209.51.163.203 stedile
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
echo gramsci.mayfirst.org > /etc/hostname
... eh, it was all done mostly and we lost focus around page 3.
apt-get install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++
apt-get install mysql-server mysql-client libmysqlclient15-dev
vi /etc/mysql/my.cnf
And comment out the bind address: #bind-address = 127.0.0.1
I needed to do this to get the second of these next two commands working, though I really don't see why it can't be restricted to localhost. Enlightenment requested.
mysqladmin -u root password yoursecretsqlpassword
stedile:/etc# mysqladmin -h stedile.mayfirst.org -u root password yoursecretpassword
Agaric skipped the stuff quota and on Postfix, Courier IMAP & POP3 etc. for this dev server.
apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include
/etc/init.d/apache2 force-reload
That takes care of SSL, maybe.
On to FTP. Pick standalone for this first command:
apt-get install proftpd ucf
vi /etc/proftpd/proftpd.conf
Change ipv6 from on to off.
Optionally, add for extra security:
DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."
Statistics:
apt-get install webalizer
Synchronize thy clock:
apt-get install ntp ntpdate
Comments
See also
http://www.arkinex.com/guides/25/installing-apache2-mysql5-and-php5-on-debian-linux/
Post new comment