Jump to content

Server Status


WickedShark

Recommended Posts

as there is similiar problems like mine , i wanted to say that my problem is similiar to #10 in this topic ,

the server which whmcs is installed on showes the status , with shell , shell_exec disabled !

but the same status file on my own vps cannot show the server status and says it is unavailable.

 

i should note that i have uploaded the same file to both servers and i have set both status url correctly with / at the end. the serverstatus.php can correctly locate the links.

path that is set in whmcs : http://domain1.com/status/

http://domain2.com/status/

 

here is the information from both of my servers .

 

 

 

the working server :

 

here is the details by accessing the url directly :

http://domain1.com/status/index.php

Server Load : 0.62

Uptime Days : 36 Days 18:11:43

php version : 5.2.8

Mysql Version : 5.0.85

Zend Version : 2.2.0

 

 

Configure Command

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-fastcgi' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-zip' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

 

disable_classes no value

disable_functions shell,symlink,ini_restore,imap_body,imap_list,imap_open,mysql_list_dbs,popen,stream_select,socket_select,socket_create,socket_create_listen,socket_cre ate_pa ir,socket_listen,socket_accept,socket_bind,socket_strerror,readlink,symlink,link,pfsockopen,ini_alter,dl,openlog,syslog,putenv,pcntl_exec,pcntl_fork,p cntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,fpassthru,detcwd,system,p assthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec

on my own vps which the script is not working :

http://domain2.com/status/index.php

 

Server Load : 0.12

Uptime Days : 0 Days 19:30:01

php version : 5.2.11

Mysql Version : 5.0.86

Zend Version : 2.2.0

 

Configure Command

'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'

 

disable_classes no value

disable_functions no value

 

 

now i dont know what should i do , the script can detect the uptime status by viewing the link directly , but when it wants to work from inside whmcs it fails. and says unavailable.

 

any ideas will be appreciated.

i have root access in my vps , just tell me which files should i modify. and what to modify.

 

i doubt about some disabled functions in my vps , but i dont know how to enable them , and from where are they disabled ? i have search my php.ini ,and almost evert .conf file , httpd.conf , and so many other configurations , but i didnt find such commands in them.

 

-without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'

 

any one knows where can i enable these ?

thanks.

Link to comment
Share on other sites

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

  • 8 months later...
Hey,

 

The code you are looking at is XML and should not be run by going that file.

 

In your Admin Config, click on Servers and chose your server and click edit then find the box,

 

Server Status Address

 

and enter the URL there...

 

After that look on your serverstatus page in WHMCS and should work.

 

From,

Adam

 

It is set up that way. I was only demonstrating that it is able to view externally and that it does not show the server load and the uptime.

 

Server HTTP FTP POP3 PHP Info Server Load Uptime

DSD Main Server PHP Info Not Available Not Available

DSD Server 2 PHP Info Not Available Not Available

_________________

download wii games

how to copy wii games

Link to comment
Share on other sites

  • 5 months later...
FMFHOST, hey i had the same issue......all i had to do is log back in, go to the servers select the one i need the stats for and at the end of the Url......http://mydomain.com/status/index.php/ just ad the forward slash and it works.

 

hope this helps

 

Thanks,

 

This worked superbly.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

To all,

First of all

1)Check your server status by opening url in browser.

http://www.yourdomain.com/whmcs_path/status/'>http://www.yourdomain.com/whmcs_path/status/

If You are getting something like: "2.22 42 Days 02:00:24 5.2.14" then you are OK to go to step 2.

If not, check via ftp if "status" folder exists inside of whmcs installation root. If not then create one. And/or upload it including index.php inside, and return to Step 1.

2) DO NOT FORGET TO PUT SLASH (/) to the end of status url:

like this: http://www.yourdomain.com/whmcs_path/status/

3) if You are using forced SSL access to whmcs, then type https:// instead of http://

like this: https://www.yourdomain/whmcs_path/status/

 

You should be done.

Cheers..

Edited by Vario
Link to comment
Share on other sites

  • 2 weeks later...

Hi

 

I am having an issue with the Server Status

 

The status is displayed but the uptime always says 0 days 0:00 etc (going to status/index.php produces "0 Days 00:00:00 5.2.9")

 

I am not sure if this is something from my end, or with WHMCS. I suspect something server side, but not sure what it would be, as I am not getting any errors etc

Link to comment
Share on other sites

I think you cant connect to the server, check the details and the password/hash in server setup.

 

I don't think it has a lot to do with that.

 

I figured it out anyway. PHP errors weren't showing, but I needed to have ShellExec() enabled.

 

That fixed it :)

Link to comment
Share on other sites

  • 3 months later...

Hello, I have tried everything and I am still not getting mine to work.

1. I have added the /

2. shell_exec is not disabled, the only function that my php.ini has disabled is 'dl'... whatever that is...

3. I have tried both ways with the SSL, neither one works.

4. Going directly to URL/status/index.php in browser works fine.

 

Anybody have any other ideas?

Link to comment
Share on other sites

  • 2 weeks later...

Some of these entries is now a question which is correct?

 

/etc/php.ini

/home/cpeasyapache/src/php-5.2.17/php.ini-dist

/home/cpeasyapache/src/php-5.2.17/php.ini-recommended

/usr/lib/php.ini

/usr/local/cpanel/3rdparty/etc/php.ini

/usr/local/cpanel/3rdparty/etc/php.ini,v

/usr/local/cpanel/3rdparty/etc/php.ini.dist

/usr/local/cpanel/3rdparty/etc/php.ini.keep

/usr/local/cpanel/3rdparty/etc/horde/php.ini

/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini

/usr/local/cpanel/3rdparty/etc/phppgadmin/php.ini

/usr/local/cpanel/3rdparty/etc/roundcube/php.ini

/usr/local/cpanel/scripts/php.ini

/usr/local/lib/php.ini

/usr/local/lib/php.ini,v

Link to comment
Share on other sites

Hi

 

Those are all normal locations. I was looking for one in /home/<username>/*

 

So if you open up /usr/local/lib/php.ini in your favourite editor, around like 199-200ish you should have:

 

disablqe_functions =

 

So there is nothing next to the disabled functions? (You should have some PHP functions disabled though for security)

 

Also, what Control Panel are you using? cPanel? If so, I would maybe use EasyApache to make sure all the required dependancies are installed, and rebuild Apache/PHP anyway.

 

:)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated