# debian 8
apt-get install nano iputils-ping wget unattended-upgrades nano apache2 rsync php5 php-pear php5-gd imagemagick php5-imagick mysql-server php5-mysql tidy unzip pngnq optipng gifsicle php5-curl htop php5-curl ca-certificates libjpeg-progs subversion curl php5 libapache2-mod-php5 php5-mcrypt -y
# debian 9
apt-get install nano iputils-ping wget unattended-upgrades nano apache2 rsync php php-pear php-gd imagemagick php-imagick mysql-server php-mysql tidy unzip pngnq optipng gifsicle php-curl htop ca-certificates libjpeg-progs subversion curl libapache2-mod-php php-mcrypt php7.0-mbstring jpegoptim php7.0-sqlite -y
# debian 10
apt-get install nano iputils-ping wget unattended-upgrades nano apache2 rsync php php-pear php-gd imagemagick php-imagick mariadb-server php-mysql tidy unzip pngnq optipng gifsicle php-curl htop ca-certificates libjpeg-progs subversion curl libapache2-mod-php jpegoptim php7.3-sqlite php-zip php-mbstring curl libcurl4 libcurl3-dev git -y
#Mod pagespeed (normally not needed)
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
dpkg -i mod-pagespeed-*.deb
apt-get -f install
# continue
a2enmod expires
a2enmod headers
a2enmod rewrite
a2enmod ssl
a2ensite default-ssl
service apache2 restart
enable htaccess:
add this block to end of /etc/apache2/sites-enabled/* (both http and https) INSIDE VHOSTS SECTION.
nano /etc/apache2/sites-enabled/*
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
service apache2 restart
#install mysql
#remember to change userbnane abd pw
mysql_secure_installation
mysql -u root
#create db and user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';CREATE DATABASE databasename;
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
Spip Install Method 2
USING SPIP LOADER:
cd /var/www/html/
rm index.html
wget http://www.spip.net/spip-dev/INSTALL/spip_loader.php
chown -R www-data:www-data /var/www/html
chmod 777 /var/www/html/
@now open website at https://ip:port/spip_loader.php