# vim /etc/environment
LC_ALL=en_US.utf-8
LANG=en_US.utf-8
# yum install httpd mariadb-server php php-cli php-gd php-common php-ldap php-pdo php-pear php-snmp php-xml php-mysql php-mbstring git epel-release php-mcrypt –y
# vim /etc/httpd/conf/httpd.conf
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
Listen 8080
<VirtualHost 192.168.5.121:8080>
ServerAdmin phpipam.com
DocumentRoot /var/www/html/phpipam
ServerName 192.168.5.121
ErrorLog logs/phpipam.com-error_log
CustomLog logs/phpipam.com-access_log common
</VirtualHost>
# vim /etc/php.ini
date.timezone = Asia/Shanghai
# systemctl restart httpd
# systemctl enable httpd
# systemctl start mariadb
# systemctl enable mariadb
# mysql_secure_installation
# cd /var/www/html/
# git clone https://github.com/phpipam/phpipam.git
# cd phpipam/
# git checkout 1.3
# chown apache.apache /var/www/html/phpipam –R
# chcon -t httpd_sys_content_t /var/www/html/phpipam –R
#cd /var/www/html/phpipam
# find . -type f -exec chmod 0644 {} \;
# find . -type d -exec chmod 0755 {} \;
#cd /var/www/html/phpipam
#git checkout 1.3
http://192.168.5.121:8080