Bittylicious Setup: Difference between revisions

From GigaTux Wiki
Jump to navigation Jump to search
Created page with "#Install Wheezy #apt-get install php5 mysql-server apache2 emacs23-nox #apt-get install openssh-server phpmyadmin fail2ban #Install csf/lfd #echo bittylicious.com > /etc/hostname..."
 
No edit summary
Line 8: Line 8:
#Copy across privilege tables - they're quite complicated
#Copy across privilege tables - they're quite complicated
#Copy MySQL data
#Copy MySQL data
#Change phpmyadmin path by changing ''/etc/apache/conf.d/phpmyadmin.conf'' and editing the line to read ''Alias /803693 /usr/share/phpmyadmin''
#Also add the following just underneath the first ''<Directory'' directive: ''AllowOverride AuthConfig''
#Add the following to .htaccess in /usr/share/phpmyadmin
AuthUserFile /usr/share/phpmyadmin/.htpasswd
AuthName "Restricted"
AuthType Basic
require valid-user
#Generate a suitable .htpasswd as well
==If you have been compromised==
#Change all API keys

Revision as of 08:07, 11 July 2013

  1. Install Wheezy
  2. apt-get install php5 mysql-server apache2 emacs23-nox
  3. apt-get install openssh-server phpmyadmin fail2ban
  4. Install csf/lfd
  5. echo bittylicious.com > /etc/hostname
  6. Change /etc/hosts to have bittylicious.com as the main hostname
  7. Configure MySQL bittylicious and bittyuser users
  8. Copy across privilege tables - they're quite complicated
  9. Copy MySQL data
  10. Change phpmyadmin path by changing /etc/apache/conf.d/phpmyadmin.conf and editing the line to read Alias /803693 /usr/share/phpmyadmin
  11. Also add the following just underneath the first <Directory directive: AllowOverride AuthConfig
  12. Add the following to .htaccess in /usr/share/phpmyadmin
AuthUserFile /usr/share/phpmyadmin/.htpasswd
AuthName "Restricted"
AuthType Basic
require valid-user
  1. Generate a suitable .htpasswd as well

If you have been compromised

  1. Change all API keys