nightfox
Mar 25 2006, 10:56 PM
Hello! I've got a test server launched using CentOS 4.3 Final and installed phpSysInfo on it to monitor it. Well, when I ran it as Debian, I never got the following errors on the output: QUOTE common_functions.php 294 file_exists(/proc/scsi/scsi) the file does not exist on your machine common_functions.php 294 file_exists(/proc/bus/usb/devices) the file does not exist on your machine common_functions.php 158 /bin/df /bin/df: `/proc': Permission denied /bin/df: `/sys': Permission denied /bin/df: `/dev/pts': Permission denied /bin/df: `/proc/bus/usb': Permission denied /bin/df: `/dev/shm': Permission denied /bin/df: `/proc/sys/fs/binfmt_misc': Permission denied /bin/df: `/var/lib/nfs/rpc_pipefs': Permission denied
You can see this more formatted properly here: http://xerge.dynamic10.com/phpsysinfo. My other (paid) web host uses the EXACT same OS as their server operating system, but yet the output doesn't give those errors: http://www.dynamic10.com/srvstatusIf you can help me with my test server, that would be awesome! [N]F Edit: Sorry, this is in the wrong forum... I should have put it under the Linux forum!
Reply
xboxrulz
Mar 26 2006, 05:07 PM
/bin/df isn't having any access to your system resources, that's why it's bouncing back things it thinks it is not there. Try editing your chmods. xboxrulz
Reply
mastercomputers
Mar 26 2006, 08:11 PM
How much Linux experience do you have? First two errors, file does not exist, you should verify if that is true or not. Now the question is, do you really need that in your script, if not, then where it checks for /proc/scsi/scsi and /proc/bus/usb/devices you should test for the condition that they exist before trying to use them, e.g. if(file_exists('/proc/scsi/scsi')) { ... then that part of the code; } and the same with the other. Another reason could be CentOS may have a different file structure, so paths maybe different. The other errors are all related to permission errors and possibly why those other two files don't exist because the script was denied. It's quite a security issue to allow permission for your script to be dealing with it this way, I would suggest using something like using suPHP. Cheers, MC
Reply
nightfox
Mar 28 2006, 01:24 AM
well, I'm sorry to say this, but I'm not that experienced. that's what all of this is for. It is a learning experience so I can easily adapt later on. I'm just sick of always taking "the easy way out." Any idiot can run an IIS server under Windows, heck- the same idiot can use Apache under Windows using the "packs" like PHPTriad or XAMPP. Also, I'd like to migrate over to Linux as much as possible. It's a task, yes, but I have yet to give up on a task. Plus, on the bright side, it's free and open source! You have no idea of how many operating systems are located on my external drive! lol I'll try and get this figured out.. [N]F
Reply
Val-Amart
Apr 8 2006, 06:26 PM
NEVER try to figure out such problems out by chmodding system files. xboxrulz, sorry, but you really shouldn't advice something untill you really know what you are saying  . As mastercomputers said, that first two files really don't exist in CentOS, neither do all the rest. The problem with the message "Permission denied" is that df returns the same exit code to php, no matter file exist or permission is denied. You should either use php version adopted for CentOS, or write it yourself  , or rewrite your script not using buggy functions. You can also try to point df's output (including stderr) to /dev/null, but I don't know wether it will work. Anyway, it's harmless, not like chmodding sysfiles 
Reply
xboxrulz
Apr 8 2006, 08:14 PM
actually, I have had software not having access to a device and it bounce back with "Device Not Found" until I give them back permission. I guess it may not be the case with Apache 2. xboxrulz
Reply
Recent Queries:--
phpsysinfo on centos - 9.42 hr back. (1)
-
phpsysinfo centos - 10.56 hr back. (1)
-
phpsysinfo bin/df permission denied - 15.36 hr back. (1)
-
common_functions.php permission denied phpsysinfo - 15.49 hr back. (1)
-
samba server firewall test on centos - 33.60 hr back. (1)
-
centos restart xserver - 36.46 hr back. (1)
-
file_exists(/proc/net/dev) the file does not exist on your machine - 136.26 hr back. (1)
-
centos tftp write permisions - 136.92 hr back. (1)
-
centos remote restart x server - 172.83 hr back. (1)
-
phpsysinfo "/bin/df" "permission denied" - 175.91 hr back. (2)
-
restart x server centos - 186.75 hr back. (1)
-
centos x server failed dual display - 226.65 hr back. (1)
-
restarting x server for centos - 295.59 hr back. (1)
-
centos phpsysinfo - 309.45 hr back. (1)
Similar Topics
Keywords : test, server, reporting, errors
- Errors When Installing/booting
From Live CD and actual installation (13)
Simple Ubuntu Based Home File Server | For Newbies
(1) This tutorial explains how to turn an old PC with additional hard disks into a simple home file
server. The file server is intended for home use. The home file server is accessible by Windows and
Linux computers in the home network. http://www.howtoforge.com/ubuntu-home-fileserver
_________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
Build Your Own Server
(10) "Have you wanted a full-functionality web-server, media host, BitTorrent client and NAS box, all
fully remote-controlled? Want to build it out of spare parts? Well then..." The guys at bit-tech
have their Linux guru explain a complete networking solution built from old junk. Contains scripts,
step-by-step instructions and lots of pics.
http://www.bit-tech.net/bits/2007/06/05/bu...ur_own_server/1 _________________________________
http://dserban01.googlepages.com/linkedin....abap.basis.html ....
Fedora Directory Server
Anybody uses it? (0) Some time ago Red Hat acquired Netscape's Directory Server and release it under open source
licence renamed Fedora Directory Server. Does onybody use it, or simply try? What future of FDS do
you predict? Give your opinion.....
Re-configure X Server
(2) I re-installed a fresh copy of Debian on an extra hard drive (I'm not about to experience the
troubles I had on a good system) and so I tried to get the Nvidia drivers re-installed. I don't
remember the way I did it before, but this time was much easier except I have to reconfigure X. I
see the Nvidia logo which means that they were installed, I just need to configure X to use them.
What is the command line? I could have swarn there was a command line for it! Thanks (again)! F....
Restarting Apache Server
(14) I've worked with Apache long enough that I know (or at least I thought I knew) how to restart
it. The problem: my terminal is filled with "command not found" and other errors and the such.
httpd restart, right? NOPE! Command not found! apachectl restart, NOPE! Command not found! I'm
out of ideas! I can't just keep physically re-booting the machine when I need JUST apache to
restart! Thanks for any help, my system is Debain 3.1 r1. F....
Binds ( Dns Server For Linux ) - How To Use It ?
(2) I have BINDS installed on my Linux box and was wondering how you use it. For the fact that it is a
DNS server, that is all I know. Otherwise, I'm lost! Thanks! F....
Suse Linux Enterprise Server 9
(5) I'm wondering if anyone has ever used SuSE Linux Enterprise Server 9 as a regular desktop Linux
distro? I use mine as a local test server, but I'm thinking of installing it on my laptop (it
has mobile features in it!) and dual booting with XP. Maybe not in the near future or anything. It
doesn't come with software like OpenOffice.org like some other versions have (Xandros for
example, and I think Fedora Core 4) and it is very limited except on server stuff. Well, I am new to
Linux so I wouldn't exactly know what 'limited' was on a Linux system. ....
Having Trouble Deciding Linux Distro For My Dad
For my dad's office server (14) Well, my dad's office needs to upgrade it's primary server that's currently running
Redhat 7.2, and I need recommend him a distro, but I'm stumped between Fedora and SUSE, wut do u
guys think? If you want to recommend other distros, please tell me, and state the reason. Thanks!
xboxrulz....
Redhat 8.0 + Evolution + Ms Exchange Server
(8) I have been forced into quite a conor at work these days and here is my problem. The project that I
am working on requires Redhat 8.0 with as few updates as possible in order to support the baseline
of the reviewed software. I would like to check my email while in Linux via the built in Evolution.
I ran the setup for Evolution and there is no option for Microsoft Exchange server. I have done
some digging around the net and have found that you need at least version 1.4.6 for the option to be
present. My current version is 1.0.8-10. I have run up2date and it says tha....
Help: Dns Server Auto Updataion
(0) hi, I have Rhel 3 and clients of abt 100+ wht i did is, i manually enterd each host name and IP,
wht i want to know? is there any other way (like in windows that each client will make an entry in
to the DNS database) any one find me answer, reply me, sami......
Linux Server Routing Failed!
please help me? (0) The following is the settings on the linux server OS: Redhat 9 eth0: 192.168.1.98/24 eth1:
192.168.10.1/24 route-eth0 file: 192.168.1.0/24 via 192.168.1.98 route-eth1 file: 192.168.10.0/24
via 192.168.10.1 my own subnet is 192.168.10.0 internet accessing router internal port:
192.168.1.99/24 problem: i want to use this linux server as a router between the real router and
the subnet. all the internet request from my subnet will be forward to the real router. my client
pc in the subnet has address :192.168.10.253 i can ping the 192.168.1.98 successfully from the cli....
Linux/unix For My Purpose
Running Linux/Unix as dedicated server (2) I'm thinking to start my own server and have never used any Linux or Unix OS before. I'm
looking for the easiest, least code/programming, most buttons-click-customizing server friendly to
MySQL, Apache, webmail, pop3, smtp, videostreaming and all that Linux/Unix OS out there. It must be
free and easy to download. All suggestions are welcome! Thank you.....
How Can Samba Server Works With Firewall?
(3) I just installed samba server. After i did the configuration, it works fine. However, if the
firewall is turned on, it will not work. How can I get my samba server works with firewall turnned
on??? ....
Dial In Server On Rh Linux 9.0
(0) Hello! Guys I have been given this task to implement or in fact configure a dial in server as in
ISPS Now here is the description What I want to configure is a Remote Access server (RRAS in windows
2003) so that my users of which have their accounts on my server can dial in from a remote location
using PSTN and then get 3 facilities 1. Files on Local LAN 2. Internet which is available on the
server and on the local LAN 3. Emails that are o the local intranet like my own domain Now I have
to configure it on Linux 9.0 The problem is that I have worked with Linux bu....
Ip blocking on a game server?
Xp--2003 server!! (5) hi i run a game server for a clan and i would like to know how to ban ips for being able to access
the server dame cheaters. I know you could use a program like zonealarm or other firewalls but i
realy would lie to use the internal one but i can t find out how to do it please can some one help
me as the cheater is so anoying.. thanks for the help....
Linux Server & Cpanel Alternatives ?
(7) Hi Due to the price of CPanel that will be out the window if I build a server, the OS I will be
using is RedHat Linux as its free. Are there any CPanel alternatives that are compatible with this?
Thanks....
Looking for test, server, reporting, errors
|
*SIMILAR VIDEOS*
Searching Video's for test, server, reporting, errors
|
advertisement
|
|