This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
61
CentOS Configuration / Re: Abantecart SEO URL issues
« on: July 25, 2019, 01:48:04 AM »
I fixed the error by making a .htaccess file and just added this and nothing else:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
SEO URL's are now working perfectly.
I also edited:
Contents of File: /etc/nginx/conf.d/vhosts/onlinebusiness1.com.conf
server {
listen 80;
server_name onlinebusiness1.com;
access_log /usr/local/apache/domlogs/onlinebusiness1.com.log;
error_log /usr/local/apache/domlogs/onlinebusiness1.com.error.log ;
# root is AbanteCart's public_html directory
root /home/onlinebu/public_html;
index index.php index.html index.htm;
# Prevent directory listing
autoindex off;
# rules applied in root of our config
location / {
# include AbanteCart rules
try_files $uri $uri/ $uri.php @abantecart_rules;
# php settings (may differ on your server)
location ~ \.php$ {
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass 127.0.0.1:9001;
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
include fastcgi_params;
}
}
# rewrites our query strings properly for AbanteCart
location @abantecart_rules {
rewrite ^(.*)\?*$ /index.php?_route_=$1 last;
}
# No direct access allowed for .tpl files
location ~ \.tpl {
deny all;
}
### Abantecart Settings ###
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Make sure files with the following extensions do not get loaded by nginx because nginx would
# display the source code, and these files can contain PASSWORDS!
location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
deny all;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
### Retina images handler. Check cookie and looking for file with @2x at the end of name
location ~* ^(.*)\.(jpg|png|gif)$ {
set $hidpi_uri $1@2x.png;
if ($http_cookie !~ 'HTTP_IS_RETINA=1') {
break;
}
try_files $hidpi_uri $uri =404;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /(system/logs|resources/download) {
deny all;
return 403;
}
location /admin/ {
location ~ .*\.(php)?$ {
deny all;
return 403;
}
}
#rewrite for images for retina-displays
location ~ / {
if (!-e $request_filename){
rewrite ^/(.*)\?*$ /index.php?_route_=$1 last;
}
}
### End of AbanteCart settings ###
}
Make sure you leave a space after the last }
This is how i got it to work with CentosWebPanel please advise on improving this method if possible.
CWP server setup is Nginx & Apache. i renamed the nginx.conf in public_html to nginx.conf.txt or just remove it, this is just a method to get things to work and i am sure i will be editing this again soon, if i do update for improvements i will post here what i did or please advice, as CWP a lot of settings cause a not found error.
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
SEO URL's are now working perfectly.
I also edited:
Contents of File: /etc/nginx/conf.d/vhosts/onlinebusiness1.com.conf
server {
listen 80;
server_name onlinebusiness1.com;
access_log /usr/local/apache/domlogs/onlinebusiness1.com.log;
error_log /usr/local/apache/domlogs/onlinebusiness1.com.error.log ;
# root is AbanteCart's public_html directory
root /home/onlinebu/public_html;
index index.php index.html index.htm;
# Prevent directory listing
autoindex off;
# rules applied in root of our config
location / {
# include AbanteCart rules
try_files $uri $uri/ $uri.php @abantecart_rules;
# php settings (may differ on your server)
location ~ \.php$ {
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass 127.0.0.1:9001;
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
include fastcgi_params;
}
}
# rewrites our query strings properly for AbanteCart
location @abantecart_rules {
rewrite ^(.*)\?*$ /index.php?_route_=$1 last;
}
# No direct access allowed for .tpl files
location ~ \.tpl {
deny all;
}
### Abantecart Settings ###
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Make sure files with the following extensions do not get loaded by nginx because nginx would
# display the source code, and these files can contain PASSWORDS!
location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
deny all;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
### Retina images handler. Check cookie and looking for file with @2x at the end of name
location ~* ^(.*)\.(jpg|png|gif)$ {
set $hidpi_uri $1@2x.png;
if ($http_cookie !~ 'HTTP_IS_RETINA=1') {
break;
}
try_files $hidpi_uri $uri =404;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /(system/logs|resources/download) {
deny all;
return 403;
}
location /admin/ {
location ~ .*\.(php)?$ {
deny all;
return 403;
}
}
#rewrite for images for retina-displays
location ~ / {
if (!-e $request_filename){
rewrite ^/(.*)\?*$ /index.php?_route_=$1 last;
}
}
### End of AbanteCart settings ###
}
Make sure you leave a space after the last }
This is how i got it to work with CentosWebPanel please advise on improving this method if possible.
CWP server setup is Nginx & Apache. i renamed the nginx.conf in public_html to nginx.conf.txt or just remove it, this is just a method to get things to work and i am sure i will be editing this again soon, if i do update for improvements i will post here what i did or please advice, as CWP a lot of settings cause a not found error.
62
CentOS Configuration / Re: Abantecart SEO URL issues
« on: July 20, 2019, 06:12:03 PM »
Any help, please.
63
CentOS 7 Problems / Re: mail
« on: July 18, 2019, 08:18:20 PM »
Check all settings again and check dns and text records.
64
CentOS 7 Problems / Re: How can I unlock my site from root ?
« on: July 18, 2019, 08:17:17 PM »
Not sure how you could do that i searched for you, fix the panel GUI interface from ssh and problem solved.
65
CentOS 7 Problems / Re: pronlem web
« on: July 18, 2019, 08:06:32 PM »
Is the dns correct? Site is pointed to the webserver ip or nameservers?
66
CentOS 7 Problems / Re: Cannot connect to control panel..
« on: July 18, 2019, 08:05:14 PM »
It is the firewall, all the instructions are in the panel as well as the wiki pages. Could be mod security too, could be a dns issue. If all else fails and you can not get help then as a last resort backup account and reinstall the server. When there is an error there is usually logs and you can fix the errors from reading the error logs for the webserver and other services.
67
CentOS 7 Problems / Re: help me please
« on: July 18, 2019, 08:02:36 PM »
Check all settings and nameserver settings, maybe try setting all panel logins to ssl only in options too. Sounds like something simple, if all else fails just reinstall and check all settings are correct.
69
CentOS Configuration / Abantecart SEO URL issues
« on: July 16, 2019, 06:14:42 PM »
How, can i get abantecart CMS to work correctly? I am using Nginx apache varnish web server, should i go back to Apache only? Maybe it is just a small thing i need to do but i can not find any answers using Google search.
I migrated the website from cPanel but also having the same issue with a newly installed domain using Abantecart CMS.
https://onlinebusiness1.com/index.php?rt=product/category&path=74_91 When the 2 links at the bottom of the page are clicked on it goes to an error page or not found.
Using centos 7 - CWP Pro.
As far as i can tell it is not a mod security issue or htaccess issues, though i think i need to add something to nginx.conf or edit another part of the nginx configurations in CWP admin panel.
SEO URL not working on 5 sites on 3 different CWP servers.
I migrated the website from cPanel but also having the same issue with a newly installed domain using Abantecart CMS.
https://onlinebusiness1.com/index.php?rt=product/category&path=74_91 When the 2 links at the bottom of the page are clicked on it goes to an error page or not found.
Using centos 7 - CWP Pro.
As far as i can tell it is not a mod security issue or htaccess issues, though i think i need to add something to nginx.conf or edit another part of the nginx configurations in CWP admin panel.
SEO URL not working on 5 sites on 3 different CWP servers.
70
Installation / Re: Easy to follow CWP Install
« on: July 15, 2019, 09:30:09 PM »Stop using cPanel and support CWP.
The easiest to follow tutorials. I would recommend you buy CWP pro it is like $11/Yearly or $1 Monthly.
Install FREE Centos Web Panel:
https://www.linuxtechi.com/install-configure-cwp-centos-web-panel-on-centos-7/
Migrate from cPanel:
http://www.servermom.org/cpanel-to-cwp-migration-tutorial/
Recommendations:
Use 2 ip's for the nameservers.
Buy the pro version it is affordable worldwide.
Backup any configuration files before you edit them.
Check mod security and firewall settings if you get blank web pages or website errors.
For compatibility, i chose the last available PHP version of 7.1 which is PHP Version 7.1.30
Refer to official CWP documentation as well as this info.
http://centos-webpanel.com/
Promoting Centos Web Panel CWP will make the panel better, the more people that use CWP means more improvements!
71
Installation / Easy to follow CWP Install
« on: July 14, 2019, 01:23:49 PM »
Stop using cPanel and support CWP.
The easiest to follow tutorials. I would recommend you buy CWP pro it is like $11/Yearly or $1 Monthly.
Install FREE Centos Web Panel:
http://www.servermom.org/cpanel-to-cwp-migration-tutorial/
Migrate from cPanel:
http://www.servermom.org/cpanel-to-cwp-migration-tutorial/
Recommendations:
Use 2 ip's for the nameservers.
Buy the pro version it is affordable worldwide.
Backup any configuration files before you edit them.
Check mod security and firewall settings if you get blank web pages or website errors.
For compatibility, i chose the last available PHP version of 7.1 which is PHP Version 7.1.30
Refer to official CWP documentation as well as this info.
http://centos-webpanel.com/
Promoting Centos Web Panel CWP will make the panel better, the more people that use CWP means more improvements!
The easiest to follow tutorials. I would recommend you buy CWP pro it is like $11/Yearly or $1 Monthly.
Install FREE Centos Web Panel:
http://www.servermom.org/cpanel-to-cwp-migration-tutorial/
Migrate from cPanel:
http://www.servermom.org/cpanel-to-cwp-migration-tutorial/
Recommendations:
Use 2 ip's for the nameservers.
Buy the pro version it is affordable worldwide.
Backup any configuration files before you edit them.
Check mod security and firewall settings if you get blank web pages or website errors.
For compatibility, i chose the last available PHP version of 7.1 which is PHP Version 7.1.30
Refer to official CWP documentation as well as this info.
http://centos-webpanel.com/
Promoting Centos Web Panel CWP will make the panel better, the more people that use CWP means more improvements!
72
Information / Re: there is a way to upload zip file and easily unzip them?
« on: July 14, 2019, 01:15:27 PM »
The same issue uploaded a zip file now it has disappeared, what is bad is the zip file maybe now accessible to the public. Will go in ssh and try to find. A workaround would be ssh commands or FileZilla etc.