HowTo install phpsysinfo ?

fpausp

Member
Aug 31, 2010
251
6
18
Austria near Vienna
I would like to install phpsysinfo on Proxmox 2.2, can anyone instruct me to install it ?

I tried to use:

Code:
apt-get install phpsysinfo
But I always will be redirected to https and port 8006 ...
 

mir

Well-Known Member
Apr 14, 2012
3,483
97
48
Copenhagen, Denmark
apt will install phpsysinfo in /usr/share/phpsysinfo so all you need to do is to place the snippet below in /etc/apache2/conf.d/phpsysinfo and reload apache:
Code:
Alias /phpsysinfo /usr/share/phpsysinfo
<Location /phpsysinfo>
    Options None
    Order deny,allow
    Deny from all
    Allow from your_management_subnet
</Location>
 

fpausp

Member
Aug 31, 2010
251
6
18
Austria near Vienna
apt will install phpsysinfo in /usr/share/phpsysinfo so all you need to do is to place the snippet below in /etc/apache2/conf.d/phpsysinfo and reload apache:
Code:
Alias /phpsysinfo /usr/share/phpsysinfo
<Location /phpsysinfo>
    Options None
    Order deny,allow
    Deny from all
    Allow from your_management_subnet
</Location>

Thanks but still get this in the browser when I try http://<ip>/phpsysinfo :

Code:
[B]Forbidden[/B]

 You don't have permission to access /phpsysinfo on this server.

How should I change the permission ?
 

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
13,673
426
83
do you understand this line?

Code:
Allow from your_management_subnet
you need to add your subnet here, otherwise your IP is not allowed to access the page.

but anyways, I do not recommend to install php on Proxmox VE host.
 

fpausp

Member
Aug 31, 2010
251
6
18
Austria near Vienna
OK, thank you its working, i had to find the right synthax for the subnetmask ...

@ I do not recommend to install php on Proxmox VE host.
Do you mean security or stability or both ?
 

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
13,673
426
83
OK, thank you its working, i had to find the right synthax for the subnetmask ...

@ I do not recommend to install php on Proxmox VE host.
Do you mean security or stability or both ?
its a general rule to keep the host clean and yes, php is often target of security bulletins. IMHO this tool looks not that great anyways, most info is displayed already on the Proxmox GUI, the rest can be checked via CLI.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!