Default Setup
-
Run crontab –e to add the following setting:
MAILTO=root
0 6 * * 5 /sbin/shutdown -r now
0 2 1 * * /etc/rc.d/init.d/httpd stop; rm -f /etc/httpd/logs/*; /etc/rc.d/init.d/httpd start -
Install info.php in /home/admin/web/php-bin
touch /home/admin/web/php-bin/info.php
vi /home/admin/web/php-bin/info.php
<? phpinfo(); ?>
-
Install phpMyAdmin in /home/admin/web/php-bin/phpmyadmin
wget –P /home/admin/web/php-bin http://<latest_phpmyadmin>
tar –zxvf /home/admin/web/php-bin/phpMyAdmin-latest.tar.gz
rm /home/admin/web/php-bin/phpMyAdmin-latest.tar.gz
mv phpMyAdmin-latest phpmyadmin
vi phpmyadmin/config.inc.php
$cfg['PmaAbsoluteUri'] = ‘http://<hostname>/php-bin/phpmyadmin/’;
$cfg['Servers'][$i]['auth_type'] = ‘http’;
$cfg['Servers'][$i]['user'] = ”; -
Install under construction page in /home/admin
Please refer to http://it-lodge.ywso.com
Basically, you need index.html and img/wesostyle.jpg only -
If you are using phpMyAdmin 2.9.1.1 or later, the config.inc.php configuration is different from the older version, you may want to edit some general command in the file.
$cfg['blowfish_secret'] = ‘cookie‘;
$cfg['Servers'][$i]['controluser'] = ‘<Leave Blank>‘;
$cfg['Servers'][$i]['controlpass'] = ‘<Leave Blank>‘;