[eluser]Unknown[/eluser]
Hey guys,
I am new to CodeIgniter and am having a horrible problem. I was given a full website built with codeigniter, and am hosting it on Dreamhost. It is a script install to set everything up, but I am having issues with the mod_rewrite on Apache2. I have put in a support ticket and Dreamhost has told me that they can not help me with 3rd party scripts, but that my module rewrite is correctly installed on my server. I have attached the mod_rewrite validation code from the install script. I would greatly appreciate ANY help I can get as I cannot move any further.
Thanks!
Code:
if(function_exists('apache_get_modules'))
{
$module_arr=apache_get_modules();
if(in_array('mod_rewrite',$module_arr))
{
$chk_arr['Mod_Rewrite']='<div class="success">Module Rewrite is installed.</div>';
} else {
$chk_arr['Mod_Rewrite']='<div class="error">Module Rewrite is not installed.</div>';
$chk_setting=false;
}
} else {
$test_base_url=str_replace('/install/index.php','','http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$test_base_url=str_replace('/install','',$test_base_url);
$show_cc = file_get_contents($test_base_url."test.php");
if($show_cc=='mod_rewrite is working')
{
$chk_arr['Mod_Rewrite']='<div class="success">Module Rewrite is installed.</div>';
} else {
$chk_arr['Mod_Rewrite']='<div class="error">Module Rewrite is not installed.</div>';
$chk_setting=false;
}
}