Unpack that tar ball. I choose to install in /data/apache2. - tar -zxvf phpsysinfo-"$version"-tar.gz -c /data/apache2
- cd /data/apache2/phpsysinfo-"$version"
- cp -v phpsysinfo.ini.new phpsysinfo.ini
- chown -Rv wwwrun:www /data/apache2/phpsysinfo-"$version"
Add an entry to apache2 config
- vi /etc/apache2/conf.d/phpSysInfo.conf
Add the entry below
Alias /sysinfo /data/apache2/phpsysinfo-"$version"
<Directory /data/apache2/phpsysinfo-"$version">
Options Indexes MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<Directory /data/apache2/phpsysinfo-"$version">
Options Indexes MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Again the only thing to adjust to your set up is /data/apache2.
Restart apache2
- systemctl restart apache2.service
Type the url on your browser
- localhost/sysinfo
No comments:
Post a Comment