{"action":"created","issue":{"url":"https://api.github.com/repos/afaqurk/linux-dash/issues/326","labels_url":"https://api.github.com/repos/afaqurk/linux-dash/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/afaqurk/linux-dash/issues/326/comments","events_url":"https://api.github.com/repos/afaqurk/linux-dash/issues/326/events","html_url":"https://github.com/afaqurk/linux-dash/issues/326","id":102753411,"number":326,"title":"Data not pulled on cPanel account","user":{"login":"brandonaaws","id":13942444,"avatar_url":"https://avatars.githubusercontent.com/u/13942444?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonaaws","html_url":"https://github.com/brandonaaws","followers_url":"https://api.github.com/users/brandonaaws/followers","following_url":"https://api.github.com/users/brandonaaws/following{/other_user}","gists_url":"https://api.github.com/users/brandonaaws/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonaaws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonaaws/subscriptions","organizations_url":"https://api.github.com/users/brandonaaws/orgs","repos_url":"https://api.github.com/users/brandonaaws/repos","events_url":"https://api.github.com/users/brandonaaws/events{/privacy}","received_events_url":"https://api.github.com/users/brandonaaws/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T09:53:30Z","updated_at":"2015-08-30T03:08:17Z","closed_at":"2015-08-24T17:10:13Z","body":"Hi,\r\n\r\nI installed this on cPanel. Have made sure the php.ini disable function do not have exec and shell_exec in it. Still it give me no values. It shows the page with no values in it\r\n\r\nhttp://screencast.com/t/mMsfTw1Wzp0I\r\n\r\nFurther investigating, the error logs shows\r\n\r\nPHP Warning:  shell_exec() has been disabled for security reasons in /home/cpane_user/public_html/server/index.php on line 8\r\nPHP Warning:  shell_exec() has been disabled for security reasons in /home/cpane_user/public_html/server/index.php on line 8\r\nPHP Warning:  shell_exec() has been disabled for security reasons in /home/cpane_user/public_html/server/index.php on line 8\r\n\r\nBut I have made sure to have php.ini in each folder including public_html, servers, modules, shell_scripts and each php.ini has disable_function= \" \"\r\n\r\nWhen I run the sh files from server, they are working but not via php. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/afaqurk/linux-dash/issues/comments/136077621","html_url":"https://github.com/afaqurk/linux-dash/issues/326#issuecomment-136077621","issue_url":"https://api.github.com/repos/afaqurk/linux-dash/issues/326","id":136077621,"user":{"login":"afaqurk","id":751323,"avatar_url":"https://avatars.githubusercontent.com/u/751323?v=3","gravatar_id":"","url":"https://api.github.com/users/afaqurk","html_url":"https://github.com/afaqurk","followers_url":"https://api.github.com/users/afaqurk/followers","following_url":"https://api.github.com/users/afaqurk/following{/other_user}","gists_url":"https://api.github.com/users/afaqurk/gists{/gist_id}","starred_url":"https://api.github.com/users/afaqurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afaqurk/subscriptions","organizations_url":"https://api.github.com/users/afaqurk/orgs","repos_url":"https://api.github.com/users/afaqurk/repos","events_url":"https://api.github.com/users/afaqurk/events{/privacy}","received_events_url":"https://api.github.com/users/afaqurk/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T03:08:17Z","updated_at":"2015-08-30T03:08:17Z","body":"@brandonaaws: well, that's interesting. I saw your email.\r\n\r\nIt seems like your server is responding to each shell file request by responding with the contents of the **index.js** file in server directory.\r\n\r\nThis is happening because rather than going to the index.php file by default, your webserver is going to index.js first when a request is made to the server directory by the front-end. Obviously, since you are not running node.js, the webserver is just serving the file as text. \r\n\r\nI would suggest going into your server config and making sure that index.php is set as default file. This is usually the case by default in Apache if I am not mistaken. In NGINX, you have to specify it.\r\n\r\n "}}