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.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
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;
}
}
- Previous
- 1
- 2
- Next
You must log in to post replies.