Joseph Conover
05-27-2009, 07:51 PM
I too was getting a 403 error. Hostgator corrected that and then I received a 500 error message. Hostgator narrowed it down to (#RewriteRule ^$ main.html [NE,L] ). I no longer see the 500 error but when I type in www.com/delavo/ I get this:
Index of /delavo
* Parent Directory
* JinAuthenticatorImpl.class.php
* aff.js
* install.tstamp
* jin.cache.templates/
* jin.cgi
* jin_par/
* lpgo.php
* lphp.php
* mce/
* php/
* promogen-templates/
* skins/
* zen-loader/
* zen-sitebox/
Any help would be greatly appreciated.
URL deleted by Mod REASON: Cannot post a live link to your website in the
body of your post.
Steven Hancock
05-27-2009, 08:09 PM
By putting a # in front of the line:
RewriteRule ^$ main.html [NE,L]
You (or HostGator support) are commenting it out and the server isn't doing anything with that rewrite rule. I'm no DELAVO expert (yet? lol) but I know my way around .htaccess and mod_rewrite. That rewrite rule is telling the server that requests to your /delavo directory should be rewritten to request main.html (which is later rewritten, in the last line of the file, to request jin.cgi/main.html). That particular rewrite rule is required for DELAVO to work.
Here's a copy of my .htaccess from a working DELAVO install on HostGator, compare it with yours and fix anything that's missing..
Options +ExecCGI
RewriteEngine On
RewriteRule ^jin\.cgi - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},PT]
RewriteRule ^lp[a-z]{2}\.php - [PT]
RewriteRule ^php/ - [PT]
RewriteRule ^skins/ - [PT]
RewriteRule ^satellites/ - [PT]
RewriteRule ^mce/ - [PT]
RewriteRule ^files/ - [PT]
RewriteRule ^aff.js - [PT]
# for compatibility with Fantasos:
RewriteRule ^fantasos_aff.js - [PT]
# SITE SPECIFIC
RewriteRule (^.*/delavo)$ $1/ [L]
# SITE SPECIFIC; cut www. due to security problem in IE
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^.* http://%1%{REQUEST_URI} [L,R]
RewriteRule ^s([0-9]+)(/(.+))? $3 [NE,L,QSA]
RewriteRule ^$ main.html [NE,L]
# package order links
RewriteRule ^([0-9]+)([a-z]{2})/([0-9]+)/order/? order/init_package.html?pack_id=$1&signature=$2&aff_id=$3 [NE,L,QSA]
RewriteRule ^([0-9]+)([a-z]{2})/order/? order/init_package.html?pack_id=$1&signature=$2 [NE,L,QSA]
# package minisite link
RewriteRule ^([0-9]+)([a-z]{2})/site/? minisite/main.html?pack_id=$1&signature=$2 [NE,L,QSA]
# package homepage links
RewriteRule ^([0-9]+)([a-z]{2})/([0-9]+)/? package/homepage.html?pack_id=$1&signature=$2&aff_id=$3 [NE,L,QSA]
RewriteRule ^([0-9]+)([a-z]{2})/? package/homepage.html?pack_id=$1&signature=$2 [NE,L,QSA]
# orders, sales and transactions
RewriteRule ^order\-([a-z0-9]{8})([0-9]+) order/process.html?order_id=$2&signature=$1 [NE,L,QSA]
RewriteRule ^thank\-([a-z0-9]{8})([0-9]+)/download/([a-z]+[0-9]+)/ action/Jin/Download/fetch.html?source=$3&sale_id=$2&signature=$1 [NE,L,QSA]
RewriteRule ^thank\-([a-z0-9]{8})([0-9]+)/invoice-([0-9]+) action/Jin/InvoicePDF/get.html?invoice_id=$3&sale_id=$2&signature=$1 [NE,L,QSA]
RewriteRule ^thank\-([a-z0-9]{8})([0-9]+) order/thank.html?sale_id=$2&signature=$1 [NE,L,QSA]
RewriteRule ^pg\-feedback/([a-z]+/[a-z]+/[a-z0-9]+).cgi action/Jin/PGTxn/feedback.cgi?feedback=$1 [NE,L,QSA]
# affiliate instant bonuses
RewriteRule ^affbonus\-([0-9]+) master/plugins/affinbs/customer_page.html?aff_id=$1 [NE,L,QSA]
# jv products
RewriteRule ^jvprod\-([0-9]+)/([a-z_]+) action/Jin/JveventProd/get.html?jvprod_id=$1&f=$2 [NE,L,QSA]
# invitations
RewriteRule ^invite\-([a-z0-9]{8})([0-9]+)(/([0-9]+))? auth/register.html?inv_id=$2&signature=$1&referer=$4 [NE,L,QSA]
RewriteRule ^action/Jin/PGate/mod_([a-z0-9]+)/return.cgi action/Jin/PGTxn/feedback.cgi?feedback=return/pgt/$1 [NE,L,QSA]
# for back compatibility with JVM1 (subscriptions initiated in JVM1) and with JVM2 v1.6 and earlier
RewriteRule ^action/Jin/PGate/mod_([a-z0-9]+)/ipn.cgi action/Jin/PGTxn/feedback.cgi?feedback=notify/pgt/$1 [NE,L,QSA]
RewriteRule ^(.+) jin.cgi/$1 [QSA,NE,L]
If you're still having problems with a 500 error after you fix the .htaccess file, check your error logs in cpanel. I'd almost be willing to bet the 500 errors are a simple file permissions problem (I know jin.cgi should be 755 on HostGator, it will not run with "looser" permissions than that, like 766 or 777).
edit: watch out for the lines in .htaccess that are marked SITE SPECIFIC you probably shouldn't change those to match mine (although a quick glance tells me it probably wouldn't hurt anything since my script is also installed in /delavo)
Joseph Conover
05-27-2009, 09:04 PM
Thanks Steven. The reason the # sign was placed in front of RewriteRule on line 25 was to delete the 500 error and indicate where the problem lied.
The below were all set to 0644. I changed the jin.cgi to 0755 and eliminated the # sign and all seems to be working fine. I appreciate your help. If any
of the below files need to be changed other then the jin.cgi please let me know. Thanks again.
.htaccess
aff.js
install.tstamp
jin.cgi
JinAuthticatolmpl.class.php
lpgo.php
lphp.php
Steven Hancock
05-27-2009, 09:22 PM
If it's working now, you should be fine. Don't know why jin.cgi would have been set to 644 (it needs to be marked as 755 to be "executable" since it's a CGI file). It would take me forever to go through my install and list all the file permissions, I live in an area where high speed internet isn't available at any price.. lol.. but as long as everything seems to be working the rest of your permissions are probably fine the way they are.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.