rewrite problem with install of 1.8

i'm pretty computer savvy but this new vps i got is driving me nuts lol. i did a fresh install of centos 5 with kloxo as my cpanel alternative. now i can't seem to pass the first requirement check which is to disable open_basedir. trust me, i've done my research and it's still not working. can someone help me on this matter? i'll be tinkering with it while i wait for your replies.

  • runRewriteTest() is the name of the method that you should be putting that code into - not run().

    ElggRewriteTester is a class

    It has methods (also called functions) like run() and runRewriteTest(). When you look at the method runRewriteTest() it should be clear (or at least clearer) where to put the error_log() calls.

  • okay let me do this again, it should look like this right?

    runRewriteTest(error_log("hitting $url"));

    so i put that code inside all the runRewriteTest() method right? i am so confused cash

  • Find this line: protected function runRewriteTest($url) {

    and put the code in that method.

  • okay got it, now where to put

    error_log($reponse);

    in that function, there's like 3 returns. you said to put it before the 2 returns, so i'm gonna put it after the first one and see what happens.

        protected function runRewriteTest($url) {
            error_log("hitting $url");
            $this->serverSupportsRemoteRead = TRUE;

            if (function_exists('curl_init')) {
                // try curl if installed
                $ch = curl_init();
                curl_setopt($ch, CURLOPT_URL, $url);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($ch, CURLOPT_TIMEOUT, 10);
                curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                $response = curl_exec($ch);
                curl_close($ch);
                return $response === 'success';
                error_log($reponse);
            } else if (ini_get('allow_url_fopen')) {
                // use file_get_contents as fallback
                $response = file_get_contents($url);
                return $response === 'success';
            } else {
                $this->serverSupportsRemoteRead = FALSE;
                return FALSE;
            }
        }

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.