Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-26-2008, 07:14 AM
Junior Member
 
Join Date: Dec 2007
Posts: 8
Angry vShare Help

hi

Hello

Somebody uses vshare? (youtube-clone)

I need help with finding all htacces filles and to modify
them

Until now I have found htaccess you case out in public_html ,
public_html/vshare-folder/ , public_html/vshare-folder/cgi-bin the 3 files now are called htaccess_old

Problems - mysite.com, mysite.com/vshare-folder/ and all mysite/vshare-folder/all-files.php go wel,
But not mysite.com/vshare-folder/folder-2/ and mysite.com/vshare-folder/folder-2/all-file

Last edited by mario2000 : 04-26-2008 at 11:52 AM.
Reply With Quote
  #2 (permalink)  
Old 04-26-2008, 08:18 AM
Junior Member
 
Join Date: Dec 2007
Posts: 8
Angry

My htaccess files

In the public_html

php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
php_value session.gc_maxlifetime 14400

RewriteEngine On


# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off



In the public_html/vshare-folder/ - i have instaled the script in an folder


php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 6000000
php_value max_input_time 30000
php_value memory_limit 512M
php_value session.gc_maxlifetime 144000

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^admin$ - [L]
RewriteRule ^admin/(.*) - [L]
RewriteRule ^install$ - [L]
RewriteRule ^install/(.*) - [L]
RewriteRule ^$ index.php
RewriteRule ^view/(.*)/(.*)/ view_video.php?id=$1 [L,QSA]
RewriteRule ^tag/(.*)/(.*) tag.php?search_id=$1&page=$2 [L,QSA]
RewriteRule ^channel/(.*)/(.*)/recent/(.*) video.php?category=recent&chid=$1&page=$3
RewriteRule ^channel/(.*)/(.*)/viewed/(.*) video.php?category=viewed&chid=$1&page=$3
RewriteRule ^channel/(.*)/(.*)/ channel_detail.php?id=$1

RewriteRule ^detailed/recent/(.*) video.php?category=recent&page=$1&viewtype=detaile d
RewriteRule ^detailed/viewed/(.*) video.php?category=viewed&page=$1&viewtype=detaile d
RewriteRule ^detailed/discussed/(.*) video.php?category=discussed&page=$1&viewtype=deta iled
RewriteRule ^detailed/favorites/(.*) video.php?category=favorites&page=$1&viewtype=deta iled
RewriteRule ^detailed/rated/(.*) video.php?category=rated&page=$1&viewtype=detailed
RewriteRule ^detailed/featured/(.*) video.php?category=featured&page=$1&viewtype=detai led
RewriteRule ^detailed/random/(.*) video.php?category=random&page=$1&viewtype=detaile d
RewriteRule ^recent/(.*) video.php?category=recent&page=$1
RewriteRule ^viewed/(.*) video.php?category=viewed&page=$1
RewriteRule ^discussed/(.*) video.php?category=discussed&page=$1
RewriteRule ^favorites/(.*) video.php?category=favorites&page=$1
RewriteRule ^rated/(.*) video.php?category=rated&page=$1
RewriteRule ^featured/(.*) video.php?category=featured&page=$1
RewriteRule ^random/(.*) video.php?category=random&page=$1
RewriteRule ^rss/new/ rss.php?type=new [L]
RewriteRule ^rss/comments/ rss.php?type=comments [L]
RewriteRule ^rss/views/ rss.php?type=views [L]
RewriteRule ^group/(.*)/members/(.*) group_members.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/videos/(.*) group_videos.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/add/(.*) add_video.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/fav/(.*) add_favour.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/topic/(.*) group_posts.php?urlkey=$1&tid=$2
RewriteRule ^group/(.*)/invite/ invite_members.php?urlkey=$1 [L,QSA]
RewriteRule ^group/(.*)/ groups_home.php?urlkey=$1 [L,QSA]
RewriteRule ^groups/(.*)/(.*)/(.*) groups.php?chid=$1&page=$3
RewriteRule ^groups/(.*)/(.*) groups.php?category=$1&page=$2
RewriteRule ^include/(.*) YouTube Clone Script - Script to start video sharing community
RewriteRule ^pages/(.*).html$ show_page.php?name=$1 [QSA,L]
RewriteRule ^([^/\.]+)/favorites/(.*) user_favorites.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/playlist/(.*) playlist.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/friends/(.*) user_friends.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/public/(.*)$ user_videos.php?username=$1&type=public&page=$2
RewriteRule ^([^/\.]+)/private/(.*)$ user_videos.php?username=$1&type=private&page=$2 [L,QSA]
RewriteRule ^([^/\.]+)/groups/(.*)$ user_groups.php?username=$1&page=$2 [L,QSA]
RewriteRule ^([^/\.]+)?/?$ user.php?username=$1 [L,QSA]


<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>





In the public_html/vshare-folder/cig-bin




Options +FollowSymLinks
RewriteEngine on

RewriteRule ^admin$ - [L]
RewriteRule ^admin/(.*) - [L]
RewriteRule ^install$ - [L]
RewriteRule ^install/(.*) - [L]
RewriteRule ^$ index.php
RewriteRule ^view/(.*)/(.*)/ view_video.php?id=$1 [L,QSA]
RewriteRule ^tag/(.*)/(.*) tag.php?search_id=$1&page=$2 [L,QSA]
RewriteRule ^channel/(.*)/(.*)/recent/(.*) video.php?category=recent&chid=$1&page=$3
RewriteRule ^channel/(.*)/(.*)/viewed/(.*) video.php?category=viewed&chid=$1&page=$3
RewriteRule ^channel/(.*)/(.*)/ channel_detail.php?id=$1

RewriteRule ^detailed/recent/(.*) video.php?category=recent&page=$1&viewtype=detaile d
RewriteRule ^detailed/viewed/(.*) video.php?category=viewed&page=$1&viewtype=detaile d
RewriteRule ^detailed/discussed/(.*) video.php?category=discussed&page=$1&viewtype=deta iled
RewriteRule ^detailed/favorites/(.*) video.php?category=favorites&page=$1&viewtype=deta iled
RewriteRule ^detailed/rated/(.*) video.php?category=rated&page=$1&viewtype=detailed
RewriteRule ^detailed/featured/(.*) video.php?category=featured&page=$1&viewtype=detai led
RewriteRule ^detailed/random/(.*) video.php?category=random&page=$1&viewtype=detaile d
RewriteRule ^recent/(.*) video.php?category=recent&page=$1
RewriteRule ^viewed/(.*) video.php?category=viewed&page=$1
RewriteRule ^discussed/(.*) video.php?category=discussed&page=$1
RewriteRule ^favorites/(.*) video.php?category=favorites&page=$1
RewriteRule ^rated/(.*) video.php?category=rated&page=$1
RewriteRule ^featured/(.*) video.php?category=featured&page=$1
RewriteRule ^random/(.*) video.php?category=random&page=$1
RewriteRule ^rss/new/ rss.php?type=new [L]
RewriteRule ^rss/comments/ rss.php?type=comments [L]
RewriteRule ^rss/views/ rss.php?type=views [L]
RewriteRule ^group/(.*)/members/(.*) group_members.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/videos/(.*) group_videos.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/add/(.*) add_video.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/fav/(.*) add_favour.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/topic/(.*) group_posts.php?urlkey=$1&tid=$2
RewriteRule ^group/(.*)/invite/ invite_members.php?urlkey=$1 [L,QSA]
RewriteRule ^group/(.*)/ groups_home.php?urlkey=$1 [L,QSA]
RewriteRule ^groups/(.*)/(.*)/(.*) groups.php?chid=$1&page=$3
RewriteRule ^groups/(.*)/(.*) groups.php?category=$1&page=$2
RewriteRule ^include/(.*) YouTube Clone Script - Script to start video sharing community
RewriteRule ^pages/(.*).html$ show_page.php?name=$1 [QSA,L]
RewriteRule ^([^/\.]+)/favorites/(.*) user_favorites.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/playlist/(.*) playlist.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/friends/(.*) user_friends.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/public/(.*)$ user_videos.php?username=$1&type=public&page=$2
RewriteRule ^([^/\.]+)/private/(.*)$ user_videos.php?username=$1&type=private&page=$2 [L,QSA]
RewriteRule ^([^/\.]+)/groups/(.*)$ user_groups.php?username=$1&page=$2 [L,QSA]
RewriteRule ^([^/\.]+)?/?$ user.php?username=$1 [L,QSA]


<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>




My Site is www . x-myx.com X My X free XXX muvie and PORN tube. ( WARNING ADULT SITE )
Reply With Quote
  #3 (permalink)  
Old 04-26-2008, 11:56 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,751
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

You can change your PHP from CGI to Module:

How to: Change PHP Modes and Versions

When you can switch to module... it should work fine.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #4 (permalink)  
Old 04-26-2008, 01:21 PM
Junior Member
 
Join Date: Dec 2007
Posts: 8
Default

A question, first I must put htaccess_old to htaccess again?
Reply With Quote
  #5 (permalink)  
Old 04-26-2008, 01:25 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,751
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by mario2000 View Post
A question, first I must put htaccess_old to htaccess again?
I logged into your VPS and make the necessary changes from CGI style to module style for PHP for apache, and you make keep the .htaccess like it is, it should be fine now.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #6 (permalink)  
Old 04-26-2008, 02:27 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,751
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Well, seems that this answer got resolved, this was the solution:

There are a couple of reasons why you would get this, the most comon is you have a few lines of code in your .htaccess file that are causing the issues. You can normally find them via the error_log.

If not, you will need to check for lines such as (in the .htaccess):

SecFilterScanPOST OffOptions All
SecFilterEngine Off

And make sure they are either commented out (like below) or deleted.

#SecFilterScanPOST OffOptions All
#SecFilterEngine Off
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #7 (permalink)  
Old 04-26-2008, 11:42 PM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,144
Default

Thanks for the followup post.
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
  #8 (permalink)  
Old 05-03-2008, 04:41 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,751
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by Scott View Post
Thanks for the followup post.
Sure, glad I could help.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.