Post by ideep13 » Sun Aug 13, 2017 6:16 pm

I moved to another HOST . My new hosting provider moved the files. I have a OC 2.1.0.1.

I get a 500 error.Please help me getting back to admin folder.
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@xx to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
my site is: https://djecje-kucice.com

CODE in CONFIG.PHP

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://djecje-kucice.com/');

// HTTPS
define('HTTPS_SERVER', 'https://djecje-kucice.com/');

// DIR
define('DIR_APPLICATION', '/home/djecjeku/public_html/catalog/');
define('DIR_SYSTEM', '/home/djecjeku/public_html/system/');
define('DIR_LANGUAGE', '/home/djecjeku/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/djecjeku/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/djecjeku/public_html/system/config/');
define('DIR_IMAGE', '/home/djecjeku/public_html/image/');
define('DIR_CACHE', '/home/djecjeku/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/djecjeku/public_html/system/storage/download/');
define('DIR_LOGS', '/home/djecjeku/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/home/djecjeku/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/home/djecjeku/public_html/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xx');
define('DB_PASSWORD', 'xx');
define('DB_DATABASE', 'xx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
My ADMIN CODE:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://djecje-kucice.com/xx/');
define('HTTP_CATALOG', 'https://djecje-kucice.com/');

// HTTPS
define('HTTPS_SERVER', 'https://djecje-kucice.com/xx/');
define('HTTPS_CATALOG', 'https://djecje-kucice.com/');

// DIR
define('DIR_APPLICATION', '/home/djecjeku/public_html/xx/');
define('DIR_SYSTEM', '/home/djecjeku/public_html/system/');
define('DIR_LANGUAGE', '/home/djecjeku/public_html/xx/language/');
define('DIR_TEMPLATE', '/home/djecjeku/public_html/xx/view/template/');
define('DIR_CONFIG', '/home/djecjeku/public_html/system/config/');
define('DIR_IMAGE', '/home/djecjeku/public_html/image/');
define('DIR_CACHE', '/home/djecjeku/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/djecjeku/public_html/system/storage/download/');
define('DIR_LOGS', '/home/djecjeku/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/home/djecjeku/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/home/djecjeku/public_html/system/storage/upload/');
define('DIR_CATALOG', '/home/djecjeku/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xx');
define('DB_PASSWORD', 'xx');
define('DB_DATABASE', 'xx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
permissions on folder are all 755, except .htaccess, config.. 644
Last edited by ideep13 on Mon Aug 14, 2017 4:47 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by ideep13 » Sun Aug 13, 2017 8:50 pm

I am also using cloudflare free plan.. does a cloudflare has something to do with this? I sent an email to my host, no reply yet!

please help me getting into admin folder

User avatar
New member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by ideep13 » Sun Aug 13, 2017 9:41 pm

I can also see that https://www.djecje-kucice.com/ is a blank page..

this part is in ..htaccess file

Code: Select all

# Rabbit Rabbit Security Upgrade, enhanced by Ernie 03/30/2017
<Files .htaccess>
order allow,deny
deny from all
</Files>

LimitRequestBody 750000

Options +SymLinksIfOwnerMatch

# Prevent Directory listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((^\.|\.xml|\.txt|\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Order deny,allow
Deny from all
</FilesMatch> 

# disable etags
FileETag none

# SEO URL Settings
RewriteEngine On

# If your opencart installation does not run on the main web folder,
# make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*) https://djecje-kucice.com%{REQUEST_URI} [R=301,L,NE]

# some special redirection
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]

# SEO: if it's not a real file or directory, and not certain images and auxiliary files, feed it to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

# block libwww-perl-based user agents (?)
RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
RewriteRule .* ? [F,L]

# Enable Gzip Compression
AddOutputFilterByType DEFLATE text/text
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Leverage Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 month"
</IfModule>

# Remove Browser Bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent


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


### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
#php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
#php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
#php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
#php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
#php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
#php_value max_input_time 200

# 7. disable open_basedir limitations
#php_admin_value open_basedir none

User avatar
New member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by ideep13 » Mon Aug 14, 2017 4:45 am

ok I figured out what was wrong..

in cloudflare dashboard CNAME was set to www.djecje-kucice.com.cdn.cloudflare.net .. it was wrong it must be without www, because in my .htaccess I had a code that was forcing www to non www

why I couldn't get into the admin folder was because I had a password protected folder before.. than I unprotect it and it works.. finally I can login into admin folder--

case SOLVED

O0

User avatar
New member

Posts

Joined
Mon Jun 18, 2012 2:47 am
Who is online

Users browsing this forum: No registered users and 24 guests