Jordan Posted June 22, 2007 Share Posted June 22, 2007 So I have another account that I'm setting WHMCS up on... Upon install I had to recompile apache for cURL support, and also forgot to add my php.ini file to the root directory, admin and install directory. ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = On That's included in my php.ini file to obviously allow r_g... But! It's not working -=| I'm still receiving the "Register Globals .......... WHMCS requires.." notice when I run the install. Kind of puzzled as to what's going on, especially since the php.ini file works (I just downloaded it from my other current install, and only changed my sessions directory in the current php.ini file.) My php.ini file I'm using: holdfirebilling.com/php.ini Any ideas as to what I forgot/screwed up? Link to comment Share on other sites More sharing options...
SpookedOut Posted June 22, 2007 Share Posted June 22, 2007 Just create a php.ini file into the appropriate WHMCS directorys, in theory that should work! http://support.whmcs.com/knowledgebase.php?action=displayarticle&catid=4&id=5 Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 Forgive me for wanting to pull out my hair, but did you read my post? I said that I forgot to add php.ini to the root directory as well as the admin and install directory; However I uploaded the php.ini file to the directories required, and yet WHMcs is not recognizing the configuration that has been applied. So basically like I had originally said, I have a php.ini in the correlating folders, yet the install file is not reporting it as so, so I'm really don't know what seems to be the problem. I've already tried to clear out cache hoping maybe that was the reason for it not working after I uploaded, but no go so far. Link to comment Share on other sites More sharing options...
SpookedOut Posted June 22, 2007 Share Posted June 22, 2007 Copy and paste your php.ini file Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 Feel free to view the unlinked URL in my first post, which contains a direct link to my php.ini file. Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 Actually, I wonder if it has anything to do with permission settings.. Gismo, viewing your file brought up 403 forbidden, and made me think of them. If this works, thank you for indirectly helping me! If it doesn't work (which I'll edit to state) could you save the php.ini as a phpini.txt file so I can access it? Edit: No =( Could you put that in a txt file still? Thankees! Link to comment Share on other sites More sharing options...
pacwebhosting Posted June 22, 2007 Share Posted June 22, 2007 Hi, You said you recompiled apache then forgot the php.ini file - did you add it afterwards? If you did restart apache may help Paul Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 Yeah, I recompiled apache, and then I uploaded the php.ini files, and have since overwrote the php.ini files a few.. well, many times :3 I guess I can try to restart apache and see if that'll do anything =\ Link to comment Share on other sites More sharing options...
pacwebhosting Posted June 22, 2007 Share Posted June 22, 2007 It should sort, If I make a change to php.ini a restart of apache is needed to pickup the changes. Paul Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 *rips out hair* That didn't do anything at all... I guess I'll just cave in and submit a ticket. I'm sure I did something wrong but didn't realize it.. at least.. I think so..? Link to comment Share on other sites More sharing options...
pacwebhosting Posted June 22, 2007 Share Posted June 22, 2007 Does your php info say there on or off? Paul Link to comment Share on other sites More sharing options...
pacwebhosting Posted June 22, 2007 Share Posted June 22, 2007 alter you php.ini at /usr/lib and restart apache Paul Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 What, what about /usr/lib? Also, looked at phpinfo.. register_globals Off *cries* I'm going to delete every instance of php.ini, restart apache, reupload them, then restart apache again then... Link to comment Share on other sites More sharing options...
pacwebhosting Posted June 22, 2007 Share Posted June 22, 2007 do you have root access? If you do alter your main php.ini file Paul Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 Weird, apparently when I did this server I didn't configure it properly so that php.ini would work in place of .htaccess. I tried the .htaccess method again, and voila. *dunce* Link to comment Share on other sites More sharing options...
Adam Posted June 22, 2007 Share Posted June 22, 2007 Weird, apparently when I did this server I didn't configure it properly so that php.ini would work in place of .htaccess. I tried the .htaccess method again, and voila. *dunce* Hey, Using php.ini will ONLY work if you have PHP compiled under a CGI state (in SSH type php -v). If you have PHP compiled under CLI then you will need to use .htaccess Their are many up sides of having PHP compiled under a CGI state which allows you to install suPHP and PHPsuEXEC which lets PHP run under the cpanel user name. If you have PHP compiled under CLI, all php scripts run as nobody. By having PHP compiled with suPHP and PHPsuEXEC you can not have folders set to CHMOD of 777 (which means anyone in the world can write into these folders - big security risk) but you can also track where emails are coming from PHP scripts. If you would like, I can compile PHP with suPHP or PHPsuExec on your server for a small fee... From, Adam Link to comment Share on other sites More sharing options...
Jordan Posted June 22, 2007 Author Share Posted June 22, 2007 Adam, compiling PHPsuexec hardly warrants paying someone else to do it when I already know how, and it's not hard at all Appreciate the offer. But yeah, once I was able to get it to work with htaccess, that's when I realized that I didn't have phpsuexec set up, and have since fixed it anyway ;P Link to comment Share on other sites More sharing options...
Recommended Posts