Hi,
I've been trying to install msm (MySource Matrix) on Fedora Core 4, but becuase it ships with php5, this is proving to be quite difficult. I haven't been able to find a version of php any lower than 5 that will run on fc4 and as a result I can't install msm. Is there anyway around this? Or maybe a hotfix supporting php 5?
Cheers,
Sodge
[quote]Is there anyway around this? Or maybe a hotfix supporting php 5?
[right][post=“8568”]<{POST_SNAPBACK}>[/post][/right][/quote]
There is no support for PHP5 planned for MySource Matrix. Probably the easiest way to workaround this is to downgrade to Fedora Core 3, or compile your own version of PHP4 on Fedora Core 4.
[quote]There is no support for PHP5 planned for MySource Matrix. Probably the easiest way to workaround this is to downgrade to Fedora Core 3, or compile your own version of PHP4 on Fedora Core 4.
[right][post=“8572”]<{POST_SNAPBACK}>[/post][/right][/quote]
Ok, sweet as, I just compiled my own version of PHP4 (didn’t think about doing that, thanks). But, when I go to:
file:///mysource_matrix_installer/index.php (via firefox)
I get:
run(); /** * Strips the slashes from a variable if magic quotes is set for GPC * Handle normal variables and arrays * * @param mixed $var the var to cleanup * * @return mixed * @access public / function install_gpc_stripslashes($var) { if (get_magic_quotes_gpc()) { if (is_array($var)) install_stripslashes_array($var, true); else $var = stripslashes($var); } return $var; }//end install_gpc_stripslashes() /* * Strips the slashes from an entire associative array * * @param array $array the array to stripslash * @param boolean $strip_keys whether or not to stripslash the keys as well * * @return array * @access public */ function install_stripslashes_array(&$array, $strip_keys=false) { if(is_string($array)) return stripslashes($array); $keys_to_replace = Array(); foreach($array as $key => $value) { if (is_string($value)) { $array[$key] = stripslashes($value); } elseif (is_array($value)) { install_stripslashes_array($array[$key], $strip_keys); } if ($strip_keys && $key != ($stripped_key = stripslashes($key))) { $keys_to_replace[$key] = $stripped_key; } } // now replace any of the keys that needed strip slashing foreach($keys_to_replace as $from => $to) { $array[$to] = &$array[$from]; unset($array[$from]); } return $array; }//end install_stripslashes_array() ?>
And similar garbage for the other pages. I know it probably something obivous, but you got any idea what i’m doing wrong, or why its not working?
Cheers,
Sodge
[quote]And similar garbage for the other pages. I know it probably something obivous, but you got any idea what i’m doing wrong, or why its not working?
[right][post=“8577”]<{POST_SNAPBACK}>[/post][/right][/quote]
Looks like PHP isn’t configured in Apache properly (Apache isn’t passing the .php files to mod_php). Check the install doco to make the appropriate changes to httpd.conf for this.
[quote]Looks like PHP isn’t configured in Apache properly (Apache isn’t passing the .php files to mod_php). Check the install doco to make the appropriate changes to httpd.conf for this.
[right][post=“8580”]<{POST_SNAPBACK}>[/post][/right][/quote]
I’m not quite sure what install doco your talking about, but after some googling I found that apprently all i needed to add was:
AddType application/x-httpd-php .php
To the httpd.conf file, which I did and I restarted apache and that was alright, but I went to open the installer page again and got the same random code.
Anymore ideas?
Appreciate the help,
Sodge
[quote]Anymore ideas?
[right][post=“8588”]<{POST_SNAPBACK}>[/post][/right][/quote]
I meant the PHP installation documents. You will also need to enable the mod_php extension in httpd.conf as well, with a LoadModule php4_module modules/libphp4.so line.
[quote]I meant the PHP installation documents. You will also need to enable the mod_php extension in httpd.conf as well, with a LoadModule php4_module modules/libphp4.so line.
[right][post=“8590”]<{POST_SNAPBACK}>[/post][/right][/quote]
That module is already loaded in my httpd.conf and php can be restarted without any errors. Not to mention that other php pages I have tried on the net load fine. 
[quote]file:///mysource_matrix_installer/index.php (via firefox)
[right][post=“8577”]<{POST_SNAPBACK}>[/post][/right][/quote]
I didn’t notice this before: You can’t load this as a file, you need to access it via HTTP:
http://localhost/path/to/installer/index.php
Also, you can’t use the web-based installer to install v3.6 of Matrix, you need to follow the http://localhost/path/to/installer/index.php.
[quote]I didn’t notice this before: You can’t load this as a file, you need to access it via HTTP:
http://localhost/path/to/installer/index.php
Also, you can’t use the web-based installer to install v3.6 of Matrix, you need to follow the http://localhost/path/to/installer/index.php.
[right][post=“8609”]<{POST_SNAPBACK}>[/post][/right][/quote]
Ok I tried to follow the Command-Line Installation instructions, but my php is cgi and even after reading http://localhost/path/to/installer/index.php and googling for ages, I still have no idea how to make it cli. :(’ /> It was installed via an rpm so I had no configure file. Help please. <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/smile.gif’ class=‘bbc_emoticon’ alt=’
For some strange reason, Redhat do not provide a PHP CLI binary on Fedora Core or Redhat Enterprise Linux. You need to either compile PHP from source, or use the SPEC file to create the PHP CLI RPM itself.