Hi again.
I'm running a VPS with:
General
CPU Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz (1 core(s))
Version Plesk v12.5.30_build1205150826.19 os_Ubuntu 14.04
OS Ubuntu 14.04.5 LTS
Key number PLSK.0xxxxxxx.0000
System Uptime: 00:20
plus:
1G RAM
20GB SSD
Meanwhile I've reformated the machine and started again.
I've not done any upgrades now, I think my problem was related with mysql upgrade from 5.5 to 5.6.
I was dumping my DB from my previous server that is 5.5. after the upgrade, so it didn't get converted by the upgrade process.
It's still not working, but the page is diferent now, I'm not seeing the domain default page (from var/www/vhosts/default)
Answering to your questions:
Hi alvesjc,
( pls. consider to use forum options like "Insert ..." to paste for example log - file entries into CODE brackets => 4. Icon from the right on top of each forum text - box. )
Are you sure, that this is the only depending entry? You had
several different configuration settings and only
ONE access - file - log - entry?
I've only copied the log related to my access, but yes, the server is sleeping, I've it for a week, and I'm trying to test my current shop in this testing subdomain before I move the real site to the VPS. So no traffic at all (besides google bot).
Do you use apache AND nginx for your (sub)domain? I can't find any informations here from you!
WHICH PHP - handler do you use for the (sub)domain and did you consider to switch the PHP-handler?
I've have selected php 5.6.28 with FPM served by apache, so I suppose Nginx it's not used right?
Is this what you call the handler?
hm... I can't see with this answer, if you actually USED the "
htaccess to nginx" - converter, or just installed it, in the hope that it will convert an existing "
.htaccess" file into NGINX directives automatically for your (sub)domain ??? If you don't use NGINX ( which I still don't know ), it's pretty useless to install the extension anyway.
Yes at first I was expecting that, but then I've read the link you supplied about the converter.
I've tried to convert my current .htaccess, but besides it ignoring alot of the .htaccess configuration, in the end when I've choosed to apply it shout an error complaining:
"
Invalid nginx configuration: nginx: [emerg] unknown directive "setenv" in /var/www/vhosts/system/[domain]/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
"
He converted this:
Code:
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteEngine on
#Domain: [domain]
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]
RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# Images
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
Header add Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/x-font-otf "access plus 1 year"
</IfModule>
<IfModule mod_headers.c>
Header unset Etag
</IfModule>
FileETag none
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype
</IfModule>
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
into this:
Code:
setenv REWRITEBASE:/;
#ignored: "-" thing used or unknown variable in regex/rew
rewrite ^/api$ /api/ last;
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
#ignored: "-" thing used or unknown variable in regex/rew
rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 last;
if (-e $request_filename){
set $rule_14 1;
}
if ($request_filename ~ "-l"){
set $rule_14 1;
}
if (-d $request_filename){
set $rule_14 1;
}
if ($rule_14 = "1"){
#ignored: "-" thing used or unknown variable in regex/rew
}
#ignored: "-" thing used or unknown variable in regex/rew
Well, if the software you use is meant to use additional rewrites, you will certainly experience issues with apache. I can't see the point in removing the file for what ever reason?!?
Was just to see if i get rid of that redirect, just that.
It's really hard to get some facts from you, so that it might be possible to investigate the issue together with you.
Again, I'm really sorry, I'me very new to this world, I just don't know what logs might be helpfull to you.
Please, if you don't mind, just ask me what you need.
I really appreciate your and everyone help, that's why I come to the forum.
Right now I'm getting this message:
If you are seeing this message, the website for [IP ADDRESS] is not available at this time.
If you are the owner of this website, one of the following things may be occurring:
- You have not put any content on your website.
- Your provider has suspended this page.
Please login to https://[IP ADDRESS]:8443 to receive instructions on setting up your website.
I've repeated all the setup process like before:
Instalation steps in detail:
- Create new db;
- Import db content;
- Put files on server in the folder set for webroot in control panel (subdomain/httpdocs);
- Associate the DB with the subdomain;
- Edit prestashop config file for the new DB;
- Set default domain under plesk tools and settings-> ip address to none.