Guide To Checking Your Server
Making sure you can use minerva
Attached File(s)
-
phpinfo.php (75bytes)
Number of downloads: 2 -
MYSQL.png (17.5K)
Number of downloads: 8 -
rewrite_check.php (337bytes)
Number of downloads: 6
Show message
Join us now to get access to all our awesome features. Once registered and logged in, you will be able to create topics, post replies, give reputation to your fellow members, get your own private messenger, and so, so much more.

Posted 29 March 2008 - 03:09 PM (#1)
phpinfo.php (75bytes)
MYSQL.png (17.5K)
rewrite_check.php (337bytes)
Posted 30 March 2008 - 12:13 AM (#3)
Posted 30 March 2008 - 01:18 AM (#4)
<?php
function apache_is_module_loaded($mod_name)
{
$modules = apache_get_modules();
if (in_array($mod_name, $modules))
{
echo 'mod_rewrite is installed.';
}
else
{
echo 'mod_rewrite is <strong>NOT</strong> installed.';
}
}
echo apache_is_module_loaded('mod_rewrite');
?>
rewrite_check.php (336bytes)
Posted 30 March 2008 - 02:54 AM (#5)
Posted 30 March 2008 - 05:43 AM (#6)
Just upload the file to your server and call it from your browser, eg: http://www.domain.com/rewrite_check.php, you will see the result on screen if mod_rewrite is installed or not.
Posted 30 March 2008 - 11:30 AM (#7)
mmmec, on Mar 30 2008, 06:43 AM, said:
Just upload the file to your server and call it from your browser, eg: http://www.domain.com/rewrite_check.php, you will see the result on screen if mod_rewrite is installed or not.
<?php
function apache_is_module_loaded($mod_name)
{
$modules = apache_get_modules();
if(in_array($mod_name, $modules))
{
echo 'mod_rewrite is installed.';
}
else
{
echo 'mod_rewrite is <strong>NOT</strong> installed.';
}
}
if(function_exists('apache_get_modules'))
{
echo apache_is_module_loaded('mod_rewrite');
}
else
{
echo 'Sorry, but your host has disabled the required functions to run this script.<br />This does not mean that mod_rewrite is, or is not available, it just means that this script cannot tell you if it\'s available or not.';
}
?>RewriteEngine On RewriteRule ^link([^/]*)\.html$ rewrite2.php?link=$1 [L]
<?php
if($_GET['link']==1)
{
echo "You are not using mod_rewrite";
}
elseif($_GET['link']==2)
{
echo "You are using Apache mod_rewrite";
}
else
{
echo "Linux Apache mod_rewrite test";
}
echo '<p><a href="rewrite2.php?link=1">LINK1</a> = rewrite2.php?link=1</p>
<p><a href="link2.html">LINK2</a> = link2.html</p>';
?>
Posted 30 March 2008 - 12:43 PM (#8)
sford999, on Mar 30 2008, 05:30 AM, said:
<?php
function apache_is_module_loaded($mod_name)
{
$modules = apache_get_modules();
if(in_array($mod_name, $modules))
{
echo 'mod_rewrite is installed.';
}
else
{
echo 'mod_rewrite is <strong>NOT</strong> installed.';
}
}
if(function_exists('apache_get_modules'))
{
echo apache_is_module_loaded('mod_rewrite');
}
else
{
echo 'Sorry, but your host has disabled the required functions to run this script.';
}
?>RewriteEngine On RewriteRule ^link([^/]*)\.html$ rewrite2.php?link=$1 [L]
<?php
if($_GET['link']==1)
{
echo "You are not using mod_rewrite";
}
elseif($_GET['link']==2)
{
echo "You are using Apache mod_rewrite";
}
else
{
echo "Linux Apache mod_rewrite test";
}
echo '<p><a href="rewrite2.php?link=1">LINK1</a> = rewrite2.php?link=1</p>
<p><a href="link2.html">LINK2</a> = link2.html</p>';
?>Posted 30 March 2008 - 03:02 PM (#9)
Sorry, but your host has disabled the required functions to run this script.
Posted 30 March 2008 - 09:02 PM (#10)
Posted 05 April 2008 - 06:42 AM (#11)
You are not using mod_rewrite LINK1 = rewrite2.php?link=1 LINK2 = link2.html
http://xxxx.com/forum/content/PHP-Books/121/Programming-PHP/
Posted 05 April 2008 - 02:01 PM (#12)
mmmec, on Apr 5 2008, 01:42 AM, said:
You are not using mod_rewrite LINK1 = rewrite2.php?link=1 LINK2 = link2.html
http://xxxx.com/forum/content/PHP-Books/121/Programming-PHP/
Posted 12 March 2010 - 03:30 PM (#14)