Icelabz Community forum: Guide To Checking Your Server - Icelabz Community forum

Jump to content

Important

Please follow the following guidelines when replying or creating a new thread.
  • If you have a new issue please create a new topic. Do not reply to a random topic.
  • If you have an issue or problem please provide the following
    • URL of the issue *optional
    • Screenshot *optional
    • Forum version
    • MinervaSEO version
    • Steps taken to arrive to the problem/issue
  • Please keep the conversation of a thread/topic on it's original topic and do not go Off-topic
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User is offline AgentFubu 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 167
  • Joined: 03-February 08
  • Gender:Male
  • Location:Chicago, IL

Posted 29 March 2008 - 03:09 PM (#1)

Guide To Checking Your Server


Making sure you can use minerva

Attached File(s)


<a href="http://www.mccreations.us" target="_blank">Mccreations</a> | <a href="http://www.ourgiftregistry.org" target="_blank">Our Gift Registry</a>
0


User is offline B.Ramburn 

  • Administrator
  • Group: Root Admin
  • Posts: 1,971
  • Joined: 25-June 07
  • Gender:Male
  • Location:London

Posted 29 March 2008 - 04:53 PM (#2)

thanks for this guide :P
Regards,


B.Ramburn
0


User is offline AgentFubu 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 167
  • Joined: 03-February 08
  • Gender:Male
  • Location:Chicago, IL

Posted 30 March 2008 - 12:13 AM (#3)

No problem, I corrected some errors and made it a little easier to read :)
<a href="http://www.mccreations.us" target="_blank">Mccreations</a> | <a href="http://www.ourgiftregistry.org" target="_blank">Our Gift Registry</a>
0


User is offline sford999 

  • Member
  • PipPip
  • Group: Verified
  • Posts: 27
  • Joined: 15-October 07
  • Gender:Male
  • Location:Redhill UK

Posted 30 March 2008 - 01:18 AM (#4)

A quick way of checking is mod_rewrite is installed is to use this script.

<?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');

?>


Attached File  rewrite_check.php (336bytes)
Number of downloads: 0

Just upload the file to your server and call it from your browser, eg: http://www.domain.co...write_check.php, you will see the result on screen if mod_rewrite is installed or not.
0


User is offline AgentFubu 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 167
  • Joined: 03-February 08
  • Gender:Male
  • Location:Chicago, IL

Posted 30 March 2008 - 02:54 AM (#5)

Thanks, I added it the main post with credit to you.
&lt;a href=&quot;http://www.mccreations.us&quot; target=&quot;_blank&quot;&gt;Mccreations&lt;/a&gt; | &lt;a href=&quot;http://www.ourgiftregistry.org&quot; target=&quot;_blank&quot;&gt;Our Gift Registry&lt;/a&gt;
0


User is offline mmmec 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 87
  • Joined: 23-July 07
  • Gender:Male

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.


Fatal error: Call to undefined function apache_get_modules() in /home/xxxxx/public_html/rewrite_check.php on line 4
0


User is offline sford999 

  • Member
  • PipPip
  • Group: Verified
  • Posts: 27
  • Joined: 15-October 07
  • Gender:Male
  • Location:Redhill UK

Posted 30 March 2008 - 11:30 AM (#7)

View Postmmmec, 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.


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.

<?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.
RewriteEngine On
RewriteRule ^link([^/]*)\.html$ rewrite2.php?link=$1 [L]


Then create a file named rewrite2.php and insert the following code into it.
<?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>';

?>

0


User is offline AgentFubu 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 167
  • Joined: 03-February 08
  • Gender:Male
  • Location:Chicago, IL

Posted 30 March 2008 - 12:43 PM (#8)

View Postsford999, on Mar 30 2008, 05:30 AM, said:

That means your host has the "apache_get_modules" function disabled.

Try this one instead.

<?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.
RewriteEngine On
 RewriteRule ^link([^/]*)\.html$ rewrite2.php?link=$1 [L]


Then create a file named rewrite2.php and insert the following code into it.
<?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.
&lt;a href=&quot;http://www.mccreations.us&quot; target=&quot;_blank&quot;&gt;Mccreations&lt;/a&gt; | &lt;a href=&quot;http://www.ourgiftregistry.org&quot; target=&quot;_blank&quot;&gt;Our Gift Registry&lt;/a&gt;
0


User is offline mmmec 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 87
  • Joined: 23-July 07
  • Gender:Male

Posted 30 March 2008 - 03:02 PM (#9)

after trying the first code i got this
Sorry, but your host has disabled the required functions to run this script.

so should i ask to host to enable mod_rewrite ??
0


User is offline sford999 

  • Member
  • PipPip
  • Group: Verified
  • Posts: 27
  • Joined: 15-October 07
  • Gender:Male
  • Location:Redhill UK

Posted 30 March 2008 - 09:02 PM (#10)

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.
0


User is offline mmmec 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 87
  • Joined: 23-July 07
  • Gender:Male

Posted 05 April 2008 - 06:42 AM (#11)

i tried the alternate method i got this result
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
http://xxxx.com/forum/content/PHP-Books/121/Programming-PHP/

0


User is offline AgentFubu 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 167
  • Joined: 03-February 08
  • Gender:Male
  • Location:Chicago, IL

Posted 05 April 2008 - 02:01 PM (#12)

View Postmmmec, on Apr 5 2008, 01:42 AM, said:

i tried the alternate method i got this result
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
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.
&lt;a href=&quot;http://www.mccreations.us&quot; target=&quot;_blank&quot;&gt;Mccreations&lt;/a&gt; | &lt;a href=&quot;http://www.ourgiftregistry.org&quot; target=&quot;_blank&quot;&gt;Our Gift Registry&lt;/a&gt;
0


User is offline zazinteractive 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 02-January 10

Posted 02 January 2010 - 01:38 AM (#13)

Thanks for the server check guide
0


User is offline OutsideOfDreams 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 12-March 10

Posted 12 March 2010 - 03:30 PM (#14)

I'm not sure if this is the best post for this, but this is a word of warning for Ioncube with PHP 5.3 and ZendServer 5.0 on IIS 7.

I ran into trouble trying to install a few Applications that required Ioncube. If you are using Zend Server 5.0 on IIS 7, you cannot use Ioncube for PHP 5.3. The latest PHP engine provided with Zend Server is compiled with Visual C++ 9, and requires extensions to be as well. Ioncube has stated that they play to release an updated version in Q1 of 2010:

http://forum.ioncube...der=asc&start=0

Unfortunately, I cannot use MinervaSEO (or CommunitySeo for that matter) until they release an extension for PHP 5.3 compiled in VC9.
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


Enter your sign in name and password


Sign in options
Log in with Facebook Log in with Twitter   Or sign in with these services