PhpIpam IP管理系统

# 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

Options Indexes FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

 

Listen 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

 

# 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

PhpIpam IP管理系统_第1张图片

PhpIpam IP管理系统_第2张图片

PhpIpam IP管理系统_第3张图片

 

 

你可能感兴趣的:(linux)