MOD_REWRITE REQUIRED I cannot get this to install

Kirk Sturgulewski Posted in Technical Support 8 years ago

OK so I have a hosting with iPage. I have multiple site running on my server. I have installed this in a folder named after the site. Now I never have any issues running multiple systems before wordpress, joomla, etc.

The installation haults saying MOD_REWRITE is required.

Here is my htaccess file

OpenSource-SocialNetwork

#
# @package (Informatikon.com).ossn
# @author OSSN Core Team <[email protected]>
# @copyright 2014 iNFORMATIKON TECHNOLOGIES
# @license General Public Licence http://opensource-socialnetwork.org/licence
# @link http://www.opensource-socialnetwork.org

Options -Indexes
Options +SymlinksIfOwnerMatch
DirectoryIndex index.php

<Files "error_log">
order allow,deny
deny from all
</Files>

<FilesMatch "(nginx|htaccess).dist">
order allow,deny
deny from all
</FilesMatch>

<IfModule mod_mime.c>
AddType image/vnd.microsoft.icon .ico
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 year"
</IfModule>

<FilesMatch ".(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf|js|css|ico)$">
FileETag MTime Size
</FilesMatch>

<IfModule mod_rewrite.c>

SetEnv HTTPMODREWRITE 1

RewriteEngine on

RewriteRule ^rewrite.php$ installation/tests/apache_rewrite.php [L]

RewriteRule ^action/([A-Za-z0-9\-/]+)$ system/handlers/actions.php?action=$1&%{QUERYSTRING} [L]

RewriteCond %{REQUESTFILENAME} !-d
RewriteCond %{REQUEST
FILENAME} !-f
RewriteRule ^([A-Za-z0-9\_-]+)$ index.php?h=$1 [QSA,L]

RewriteCond %{REQUESTFILENAME} !-d
RewriteCond %{REQUEST
FILENAME} !-f
RewriteRule ^([A-Za-z0-9\_-]+)/(.*)$ index.php?h=$1&p=$2 [QSA,L]

</IfModule>

<IfModule modphp5.c>
php
value memorylimit 128M
php
value registerglobals 0
php
value postmaxsize 8388608
phpvalue uploadmaxfilesize 5242880
php
value default_charset "UTF-8"
</IfModule>

This should be working but it is not. I am about to say your CMS is stinks been at this for 5 hours now with no avail.

Replies
us Kirk Sturgulewski Replied 8 years ago

The fix for ipage is to remove the options from the htaccess.dist file. Once you do that the htacess file will no longer put that in their.

us Bhuvanesh Arasu Replied 8 years ago

I have the same issue on ipage when I spoke to them this is what they told me

> Hello,
>
> I apologize for the inconvenience this might have caused you. I was
> able to replicate your issue with installing OpenSource-SocialNetwork
> application at http://xxx.therevolve.net/REvolve/ossn/installation/ .
> I have received 'Internal Server Error' on it. After taking a closer
> look at the issue you reported, I determined that the directive
> 'Options +SymlinksIfOwnerMatch' present in .htaccess file located
> under '/REvolve/ossn' is causing the issue. The code Options
> +SymlinksIfOwnerMatch wont work in .htaccess file. I have tried removing the code from .htaccess file but it is still adding while the
> installation script executes. I have troubleshooted all the
> possibilities for the same and couldn't find any server end issues.
> Meanwhile, I have done some research in Google and found that the
> issue seems to globally with many of the users. Here is one of the
> OpenSource-SocialNetwork forum thread which explaines the actual issue
> at
> https://www.opensource-socialnetwork.org/discussion/view/1810/mod-rewrite-required-i-cannot-get-this-to-install
> . For further assistance, you can directly contact
> OpenSource-SocialNetwork support team.
>
> For such configuration as explained in the forum, VPS platform is the
> ideal solution. To know more about VPS platform and signup, please go
> to: http://www.ipage.com/advanced-hosting/vps.bml .

> If you have any further questions, please update this ticket via
> Support Console or chat with us at http://www.ipage.com/chat/ .
>
> Regards,
>
> Ganesh R Senior Technical Specialist

Can we please do something about it?

Indonesian Arsalan Shah Replied 8 years ago

Please see: http://stackoverflow.com/questions/5282264/php-warning-php-startup-unable-to-load-dynamic-library
You need to tell this error to your hosting provider , this have nothing to do with OSSN.

us Kirk Sturgulewski Replied 8 years ago

Well I did what you said it makes the validation I put all my server info in and it rejects it and I get this php error at the bottom of the page. I don't want to mess with your code and screw something else up so now I am jut totally confused as to why I am getting this error now.

Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php-5.5.22-amd64/lib/php/extensions/no-debug-non-zts-20121212/phpmysql.dll' - /usr/local/lib/php-5.5.22-amd64/lib/php/extensions/no-debug-non-zts-20121212/phpmysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php-5.5.22-amd64/lib/php/extensions/no-debug-non-zts-20121212/phpmysqli.dll' - /usr/local/lib/php-5.5.22-amd64/lib/php/extensions/no-debug-non-zts-20121212/phpmysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0

Indonesian Arsalan Shah Replied 8 years ago

You said :
"....S.econd of all after looking closer into this issue it seems you 4.1.2 version the latest has a issue ..."

You need to try to remove +SymlinksIfOwnerMatch from installation/configs/htaccess.dist and then visit installation page again. If it didn't solves your issues please ask your hosting provider to install it for you.

us Kirk Sturgulewski Replied 8 years ago

Ok well the download from your site is 4.2 - 1468404691 if this is not a supported version then where do i get the right one? That came directly from the main download on this site.

So ipage said this to me:

1:55:41 PM Anusha S The code Options +SymlinksIfOwnerMatch wont work in .htaccess file.. It should be removed. Could you please remove it and try.

Indonesian Arsalan Shah Replied 8 years ago

We don't have v4.1.2 and we don't guarantee if you are installing using cpanel automatic installation, as per our information you don't need to create .htaccess on root. Even if you running 20 sites , you can install OSSN in sub directory,

Please see: https://www.opensource-socialnetwork.org/wiki/view/706/how-to-install-open-source-social-network

We don't offer hosting the items listed on our hosted page were companies that are tested by us.

us Kirk Sturgulewski Replied 8 years ago

Ok Problem solved. This is for anyone with shared hosting. Go-Daddy, Host gator, 1and 1 and iPage do not allow scripts to run on their shared hosting platform that resemble scripts for web applications or act like a storage device. They allow wordpress because it can be used for other things. I also found out that certainw ordpress plug in carry scripts like this and there fore the plug-ins break on a wordpress install causing the owner to remove the plug in in order for wordpress to work again.

So long and short of it unless you own your server and it is not a vps or a shared it will work if it is not a stand along you own this script wont work period on all major hosting providers.

Not sure why this is and not sure what softlicious did to get it to work with host gator cpanel but when i asked the question to them I was told unless it is provided in the cpanel auto install it will not work.

Hope this helps you guys in this community but i am done with it now and deleting it off my server because it just wont work. I will have to find a new solution one that will work.

us Kirk Sturgulewski Replied 8 years ago

OK so first of all I would not pay someone to host a open source program when i have a host with 15 websites already running on it. Second of all after looking closer into this issue it seems you 4.1.2 version the latest has a issue with the writing of the htaccess file. You set it up to only create the access file to write to the root of the server. Since most people do not create a site on the root this does no good. I reached out to Go-Daddy and 1and 1 and they both said that using your software will only allow root install. So they claim thats why they do not offer it up as a auto install with in their cpanel.

So now my question is I have on my server 7 wordpress sites 3 joonla site 4 PHP sites. so should i chalk it up that your software will not run? If this is the case then i will pass on it and just go back to using wordpress and bbpress. I was trying to give you a try but at this point three days of the same errors and the only answer i get is to sign up with your hosting?

Indonesian Arsalan Shah Replied 8 years ago

This should work on shared hosting that supports correct binaries of apache, php. You can try web hosting from our hosting page. https://www.opensource-socialnetwork.org/hosting