Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: MasthaX on June 08, 2007, 12:25:32 PM

Title: phpsysinfo making public?
Post by: MasthaX on June 08, 2007, 12:25:32 PM
I have installed a rpm package containing the PHPsysinfo system. Its accessed by http://server/phpsysinfo. This works fine, but i have to login all the time. Also it isnt accessable from the outside. I have check its not an Ibay thing. is there any command how to make phpsysinfo public for web without password?
Title: phpsysinfo making public?
Post by: KaiNeR on June 08, 2007, 04:16:56 PM
try using it on secure HTTPS

i access mine from the internet while at work
Title: phpsysinfo making public?
Post by: MasthaX on June 08, 2007, 04:26:38 PM
i know, thats not the problem. The problem is it cant be accessed from outside my network. they get the 404 error not found. tried both http and https
Title: phpsysinfo making public?
Post by: bpivk on June 08, 2007, 06:11:24 PM
Masthax
Code: [Select]
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
ls

Find the custom template. I don't use phpsysinfo so i can't tell you how it's named but it should be something like 97sysinfo or something.

Then
Code: [Select]
mcedit [custom template file] and edit the file.

This doesn't explain 404 error (it should be "restricted" not "not found") but it will enable you to remove the auth and check if you're typing the proper alias.

The not found error comes from another problem. Try to access it trough your ip (with https).
Title: phpsysinfo making public?
Post by: MasthaX on June 08, 2007, 06:25:53 PM
Code: [Select]
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
ls


This isnt located on my server.

its goes as far as :

Code: [Select]
etc/e-smith/templates-custom/etc/

in that folder there's only a file called proftpd.conf or something like that

so i cant edit the file. Is there any other way?

the folder phpsysinfo is located in /opt/phpsysinfo
Title: phpsysinfo making public?
Post by: bpivk on June 08, 2007, 07:32:24 PM
Can you give me the link to the contrib you used?
It seems that the template is not where it should be.
Title: phpsysinfo making public?
Post by: MasthaX on June 08, 2007, 07:53:54 PM
Im affraid i dont have it anymore. it was a RPM package thats all i know.
Title: phpsysinfo making public?
Post by: bpivk on June 08, 2007, 11:03:26 PM
Check in /etc/e-smith/templates/etc/httpd/conf/httpd.conf
If i found the correct contrib use
mcedit /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias
and edit the file.
Title: phpsysinfo making public?
Post by: Confucius on June 12, 2007, 01:11:12 PM
Another method is :

Install smeserver-phpsysinfo (prob. done already)

Create ibay with name sysinfo

copy content from /opt/phpsysinfo to html map from ibay

give command

Code: [Select]
db accounts setprop sysinfo PHPBaseDir /home/e-smith/files/ibays/sysinfo/:/proc:/etc:/usr/bin:/bin:/sbin:/usr/local/sbin

uninstall phpsysinfo

These steps (in this order) will prevent that you have to expand templates again. And instead of using phpsysinfo you can use sysinfo for seeing the information you want.

And ofcourse... the ibay is more adjustable in access.. it all depends on what you prefer ofcourse. I like this better for my own servers.

Harro

PS: you could rename the ibay sysinfo to phpsysinfo after you're done (not earlier) but you also have to adjust the basedir directive and in case you want to install an update you will run into trouble because the name phpsysinfo is existing already then.