homepageonline Posted September 25, 2010 Share Posted September 25, 2010 I have just installed our version of WHMCS and I am getting blank pages after login. I will try to be as detailed as I can so that it may help anybody else with this same issue and there is a complete fix to this problem. After the installation, as suggested I have done the following for security: Moved the following files above the www public directory to; /home/user_name/whmcs/attachments /home/user_name/whmcs/downloads /home/user_name/whmcs/templates_c All 3 folders have chomod 777 permissions and only have the index.php file inside. I have added php code to the configuration.php found under the main whmcs directory file accordingly; (user_name = account user name) $attachments_dir = "/home/user_name/whmcs/attachments/"; $downloads_dir = "/home/user_name/whmcs/downloads/"; //$templates_compiledir = "templates_c/"; (commented out this line and replaced it) $templates_compiledir = "/home/user_name/whmcs/templates_c/"; I have also renamed the whmcs/admin directory and have added the php line in the configuration.php file accordingly; $customadminpath = "/new_admin"; I have checked all posts regarding this issue and most of them point to adding the error code on the configuration.php file to "see the actual php error" like so; $display_errors = true; Not only do I continue to see blank pages but I do not see any error codes as well. As soon as I log in I am taken to; /dologin.php If I log in with the WRONG credentials I also get the same blank page but I do receive the email stating there was a recent login attempt which failed. On the email it shows the default path to the whmcs install (http://yourdomain.com/whmcs/my_new_admin/) Which I presume is because I have not been able to log in as shown on the tutorial video and correct this. If I visit the client page I do see the client portal. If I click on Forgot your Password? link on the main login.php page the system DOES send a new password. If I check the template_c folder it does appear to have new files added to it. It all seems to be working "in the background" but I am unable to view anything BUT a white page. I went as far as to log in to the WHMCS demo to "see" the actual links on the main menu available so I could test those links on my install but I keep getting a blank page. At this point I am at a loss and hope I can get help. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted September 25, 2010 Share Posted September 25, 2010 You're showing two different paths? /new_admin /my_new_admin In mine (which works), I have no slash in front of the custom admin, just "folder_name". Blank pages are usually an indication of syntax errors in the templates. 0 Quote Link to comment Share on other sites More sharing options...
homepageonline Posted September 25, 2010 Author Share Posted September 25, 2010 Thanks for your reply; Those are just examples and I changed the actual directory name for security. It's a typo in this post. Both paths are the same. Thanks for the tip on the slash, I had already thought of that and had tested with and without and got the same results. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted September 28, 2010 WHMCS Support Manager Share Posted September 28, 2010 Does the problem persist if you move the templates_c directory to the default location and remove the line from configuration.php? Try accessing tblconfiguration via phpmyadmin and setting the System URL manually, ie: http://www.yourdomain.com/members/ 0 Quote Link to comment Share on other sites More sharing options...
homepageonline Posted September 28, 2010 Author Share Posted September 28, 2010 Via support ticket I was able to correct this issue; here is how it was corrected, hope this helps anyone with the same problem; First I SSH'd into the server and reset the permissions once again for the /whmcs and everything inside it to 777 which contained the attachments, downloads and templates_c directories. If you do not have SSH access you might just be able to right mouse click on the folder using your FTP program and pick permissions. FileZilla as well as Dreamweaver will allow you to do this, I am sure others do too. Matt also changed my template_c file path in the configuration.php file to; $templates_compiledir = "templates_c/"; Not the complete path( from /home/user/whmcs/templates_c ) because according to Matt the folder is relative to the whmcs folder already. and one last thing; the $customadminpath does NOT include the slash at the beginning; $customadminpath = "hpoadmin"; That did it for me. So to recap; in the configuration.php file add the following: (CHANGE TEXT IN CAPS ACCORDINGLY) /* Security Settings : Moved Files */ $attachments_dir = "/home/USER_NAME/whmcs/attachments/"; $downloads_dir = "/home/USER_NAME/whmcs/downloads/"; $customadminpath = "DIRECTORY_NAME"; Give the moved files 777 permission from the 'top' directory, ie /home/USER_NAME/YOUR_WHMCS_DIRECTORY *** Make sure your whmcs moved files are ABOVE your root folder ( /www or /public_www directory) as this will put them out of harms way for someone to hack your installation *** Hope this helps. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted September 29, 2010 Share Posted September 29, 2010 and one last thing; the $customadminpath does NOT include the slash at the beginning; I believe I'd mentioned that. Perhaps you'd missed it? In mine (which works), I have no slash in front of the custom admin, just "folder_name". Glad you got it sorted, well done. 0 Quote Link to comment Share on other sites More sharing options...
homepageonline Posted September 29, 2010 Author Share Posted September 29, 2010 Actually when you mentioned it there was the permission issue as well. Thanks 0 Quote Link to comment Share on other sites More sharing options...
bear Posted September 29, 2010 Share Posted September 29, 2010 Actually when you mentioned it there was the permission issue as well. You sure? I have just installed our version of WHMCS and I am getting blank pages after login....All 3 folders have chomod 777 permissions and only have the index.php file inside. 0 Quote Link to comment Share on other sites More sharing options...
homepageonline Posted September 29, 2010 Author Share Posted September 29, 2010 Yes; it was mainly a permission issue with the moved files. We just finally corrected it today. The "/" was left out of the configuration.php 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.