install phpMyAdmin
This commit is contained in:
parent
5737e56f9c
commit
4d1af651d7
|
@ -1,6 +1,12 @@
|
||||||
# vhost-stack
|
# vhost-stack
|
||||||
|
|
||||||
apt install apache php
|
## Install
|
||||||
|
```
|
||||||
|
cd /usr/local/src/
|
||||||
|
git clone https://git.stack-source.com/msb/vhost-stack.git
|
||||||
|
cd vhost-stack
|
||||||
|
bash install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName $vhost
|
ServerName $vhost
|
||||||
DocumentRoot /srv/www/html/webmail/
|
DocumentRoot /srv/www/html/roundcube/public_html
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLCertificateFile /etc/ssl/letsencrypt/$vhost.pem
|
SSLCertificateFile /etc/ssl/letsencrypt/$vhost.pem
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
34
install.sh
34
install.sh
|
@ -132,14 +132,46 @@ find /etc/varnish/ -type f -exec chmod 644 {} +
|
||||||
chown -R root:root /etc/varnish/
|
chown -R root:root /etc/varnish/
|
||||||
## /usr/bin/varnishncsa
|
## /usr/bin/varnishncsa
|
||||||
|
|
||||||
|
# install vhost scripts
|
||||||
|
chmod 755 bin/*
|
||||||
|
cp bin/* /usr/local/bin/
|
||||||
|
|
||||||
# mini_sendmail so users can send out of jails
|
# mini_sendmail so users can send out of jails
|
||||||
cd /usr/local/src
|
cd /usr/local/src
|
||||||
wget http://www.acme.com/software/mini_sendmail/mini_sendmail-1.3.9.tar.gz
|
wget http://www.acme.com/software/mini_sendmail/mini_sendmail-1.3.9.tar.gz
|
||||||
tar zxvf mini_sendmail-1.3.9.tar.gz
|
tar zxf mini_sendmail-1.3.9.tar.gz
|
||||||
cd mini_sendmail-1.3.9/
|
cd mini_sendmail-1.3.9/
|
||||||
make
|
make
|
||||||
cp mini_sendmail /usr/local/sbin
|
cp mini_sendmail /usr/local/sbin
|
||||||
gzip mini_sendmail.8
|
gzip mini_sendmail.8
|
||||||
cp mini_sendmail.8.gz /usr/local/share/man/man8
|
cp mini_sendmail.8.gz /usr/local/share/man/man8
|
||||||
|
|
||||||
|
# phpMyAdmin
|
||||||
|
apt -y install php-bz2 php-tcpdf
|
||||||
|
cd /usr/local/src
|
||||||
|
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.tar.gz
|
||||||
|
tar zxf phpMyAdmin-5.1.0-all-languages.tar.gz
|
||||||
|
cd phpMyAdmin-5.1.0-all-languages
|
||||||
|
rm -r phpMyAdmin-5.1.0-all-languages/setup/ phpMyAdmin-5.1.0-all-languages/test/
|
||||||
|
blowfish_secret=`pwgen 32 -1`
|
||||||
|
echo '<?php' > phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "declare(strict_types=1);" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['blowfish_secret'] = '$blowfish_secret';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$i = 0;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$i++;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['Servers'][$i]['auth_type'] = 'cookie';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['Servers'][$i]['hide_db'] = 'information_schema|performance_schema|mysql';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['Servers'][$i]['host'] = '127.0.0.1';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['Servers'][$i]['compress'] = false;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['Servers'][$i]['AllowNoPassword'] = false;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['UploadDir'] = '';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['SaveDir'] = '';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['TempDir'] = '/tmp';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
echo "\$cfg['PmaNoRelation_DisableWarning'] = true;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
mv phpMyAdmin-5.1.0-all-languages /srv/www/html/phpMyAdmin
|
||||||
|
## chown -R /srv/www/html/phpMyAdmin ???
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user