1. prereqs
source /etc/cid.conf
curl -s http://${rdsserver}/sharel/bin/inst-httpd | sh -s "ssl"
curl -s http://${rdsserver}/sharel/bin/inst-mariadb-server | sh -s "latest"
2. installation ver 3.2
source /etc/cid.conf
yum -y install php-pdo php-xml
# wget -N -nv https://vorboss.dl.sourceforge.net/project/phpservermon/phpservermon/phpservermon-3.2.0.zip
wget -N -nv http://${rdsserver}/sharel/zip/phpservermon-3.2.0.zip
unzip -qo phpservermon-3.2.0.zip -d /opt/
mv /opt/phpservermon-*/ /opt/psm/
chown -R apache:apache /opt/psm/
rm -f phpservermon-3.2.0.zip
2.1. fix
phpfile="/opt/psm/src/psm/Module/User/Controller/UserController.php"
cube ${phpfile} 'public function run()' with 'public function run($action = NULL)'
3. installation ver 3.5
yum -y install git php-PHPMailer
cd /opt/
git clone https://github.com/phpservermon/phpservermon.git
ln -sv ./phpservermon/ psm
chown -R apache:apache /opt/psm/
cd psm/
php composer.phar install
cd
4. configuration
vi /opt/psm/config.php
<?php
define('PSM_DB_PREFIX', 'monitor_');
define('PSM_DB_USER', 'root');
define('PSM_DB_PASS', 'Passw0rd');
define('PSM_DB_NAME', 'psm');
define('PSM_DB_HOST', 'localhost');
define('PSM_DB_PORT', '3306');
define('PSM_BASE_URL', 'http://d01cid.ddns.net/psm');
mysql -u"root" -p"Passw0rd" -e "create database if not exists psm;"
wget http://d01cid.ddns.net/sharel/bin/cid-psm-purge -P /bin/
chmod +x /bin/cid-psm-purge
echo '/usr/bin/php /opt/psm/cron/status.cron.php' >> /bin/cid-cron05
echo '/bin/cid-psm-purge "30"' >> /bin/cid-cron05
vi /etc/httpd/conf.d/psm.conf
#
Alias /psm "/opt/psm/"
<Directory "/opt/psm/">
Options Indexes MultiViews FollowSymlinks
AuthType Basic
AllowOverride All
Require all granted
</Directory>
systemctl reload httpd.service