Guide To Checking Your Server, Making sure you can use minerva |
This topic is about Guide To Checking Your Server, the author, agentfubu, wrote about: I made this topic because many people don't know how to check to make sure they can run minerva. They just install it and it doesn't work. To save that trouble, just read this topic. I'll ... To read more just scroll down
Hey all!
Please report all bugs and errors to our iptracker it will be much more organised!
![]() ![]() |
Guide To Checking Your Server, Making sure you can use minerva |
Mar 29 2008, 03:09 PM
Post
#1
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Moderator Posts: 163 Joined: 3-February 08 From: Chicago, IL Member No.: 154 |
I made this topic because many people don't know how to check to make sure they can run minerva. They just install it and it doesn't work. To save that trouble, just read this topic. I'll explain how to check everything on the list of requirements in the manual
-= REQUIREMENTS =- · PHP 4 or 5· Valid IPB 2.3.x License · MYSQL 4 or 5 · Apache with mod_rewrite enabled · Access to the Admin CP · Access to FTP to upload the files -= HOW TO CHECK =-
-= GOOD TO GO =- Once you've passed all the checks, you can follow the instructions with minerva and install minerva!Remember if you need any help and you meet the criteria above you can ask for help! (please tell me of any errors in my guide) -------------------- My Site: Mccreations
Need help? PM me! |
|
|
|
Mar 29 2008, 04:53 PM
Post
#2
|
|
![]() Administrator ![]() ![]() ![]() Group: Root Admin Posts: 905 Joined: 25-June 07 From: London Member No.: 1 |
thanks for this guide
-------------------- Remember to please use the bug tracker for all bugs and errors, it is more organised that way.
Support in french and english If I reply in French please excuse my spelling & grammar, i haven't written in french for a long time. DO NOT PM ME TO ASK ME TO GO ON MSN, post the query on the support forums! |
|
|
|
Mar 30 2008, 12:13 AM
Post
#3
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Moderator Posts: 163 Joined: 3-February 08 From: Chicago, IL Member No.: 154 |
No problem, I corrected some errors and made it a little easier to read
-------------------- My Site: Mccreations
Need help? PM me! |
|
|
|
Mar 30 2008, 01:18 AM
Post
#4
|
|
|
Member ![]() ![]() Group: Contributors Posts: 27 Joined: 15-October 07 From: Redhill UK Member No.: 75 |
A quick way of checking is mod_rewrite is installed is to use this script.
CODE <?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 )
Number of downloads: 0Just 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. |
|
|
|
Mar 30 2008, 02:54 AM
Post
#5
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Moderator Posts: 163 Joined: 3-February 08 From: Chicago, IL Member No.: 154 |
Thanks, I added it the main post with credit to you.
-------------------- My Site: Mccreations
Need help? PM me! |
|
|
|
Mar 30 2008, 05:43 AM
Post
#6
|
|
![]() Advanced Member ![]() ![]() ![]() Group: +Pre-release Team Posts: 78 Joined: 23-July 07 Member No.: 11 |
CODE 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. Fatal error: Call to undefined function apache_get_modules() in /home/xxxxx/public_html/rewrite_check.php on line 4 |
|
|
|
Mar 30 2008, 11:30 AM
Post
#7
|
|
|
Member ![]() ![]() Group: Contributors Posts: 27 Joined: 15-October 07 From: Redhill UK Member No.: 75 |
CODE 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. Fatal error: Call to undefined function apache_get_modules() in /home/xxxxx/public_html/rewrite_check.php on line 4 That means your host has the "apache_get_modules" function disabled. Try this one instead. CODE <?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.'; } ?> Another way to check is to use this: Create a .htaccess file with the following contents. CODE RewriteEngine On RewriteRule ^link([^/]*)\.html$ rewrite2.php?link=$1 [L] Then create a file named rewrite2.php and insert the following code into it. CODE <?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>'; ?> |
|
|
|
Mar 30 2008, 12:43 PM
Post
#8
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Moderator Posts: 163 Joined: 3-February 08 From: Chicago, IL Member No.: 154 |
That means your host has the "apache_get_modules" function disabled. Try this one instead. CODE <?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.'; } ?> Another way to check is to use this: Create a .htaccess file with the following contents. CODE RewriteEngine On RewriteRule ^link([^/]*)\.html$ rewrite2.php?link=$1 [L] Then create a file named rewrite2.php and insert the following code into it. CODE <?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>'; ?> The only problem is that with the second test it will either work or just give a 500 Internal Server Error. That's why in the main post I just used one .htaccess because if you don't have mod_rewrite installed it will give you a server error no matter what. -------------------- My Site: Mccreations
Need help? PM me! |
|
|
|
Mar 30 2008, 03:02 PM
Post
#9
|
|
![]() Advanced Member ![]() ![]() ![]() Group: +Pre-release Team Posts: 78 Joined: 23-July 07 Member No.: 11 |
after trying the first code i got this
CODE Sorry, but your host has disabled the required functions to run this script. so should i ask to host to enable mod_rewrite ?? |
|
|
|
Mar 30 2008, 09:02 PM
Post
#10
|
|
|
Member ![]() ![]() Group: Contributors Posts: 27 Joined: 15-October 07 From: Redhill UK Member No.: 75 |
No, what that error means is that the script cannot determine if mod_rewrite is enabled or not.
You`ll have to use an alternative method to check is its available. |
|
|
|
Apr 5 2008, 06:42 AM
Post
#11
|
|
![]() Advanced Member ![]() ![]() ![]() Group: +Pre-release Team Posts: 78 Joined: 23-July 07 Member No.: 11 |
i tried the alternate method i got this result
CODE You are not using mod_rewrite LINK1 = rewrite2.php?link=1 LINK2 = link2.html so what this represent mate ? sorry for being lame BTY :: my host told me that thay have enabled this and u need to put in .htaccess also told that my forum is using this mod that why i m getting url like this CODE http://xxxx.com/forum/content/PHP-Books/121/Programming-PHP/
|
|
|
|
Apr 5 2008, 02:01 PM
Post
#12
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Moderator Posts: 163 Joined: 3-February 08 From: Chicago, IL Member No.: 154 |
i tried the alternate method i got this result CODE You are not using mod_rewrite LINK1 = rewrite2.php?link=1 LINK2 = link2.html so what this represent mate ? sorry for being lame BTY :: my host told me that thay have enabled this and u need to put in .htaccess also told that my forum is using this mod that why i m getting url like this CODE http://xxxx.com/forum/content/PHP-Books/121/Programming-PHP/ If that page loaded at all you have mod_rewrite no matter what it says on the page. If you didn't get a 500 Server Error, then you have mod_rewrite. -------------------- My Site: Mccreations
Need help? PM me! |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Sitemap | SEO by MinervaSEO © Icelabz.net | Time is now: 6th October 2008 - 05:33 PM |