olliver7171 Posted August 17, 2016 Share Posted August 17, 2016 Olá, Instalei o prestashop 1.6.1.6, em um diretorioe agora não consigo usar o dominio direcionado para a pasta que ele se encontra recebo a seguinte mensagem: ForbiddenYou don't have permission to access / on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Link to comment Share on other sites More sharing options...
selectshop.at Posted August 17, 2016 Share Posted August 17, 2016 Verifique os direitos de escrita da pasta em que adicionou o seu Prestashop. chmod 0755 ao mínimo é necessário. Se nao souber como, procure auxílio do seu provedor. Link to comment Share on other sites More sharing options...
selectshop.at Posted August 17, 2016 Share Posted August 17, 2016 Em vez de responder à minha pergunta vc. usou o botao "report" para reportar spam. Quanto à sua pergunta. Sim poode dar conflito, dependendo de qual .htaccess o seu servidor puxa primeiramente. Vc. terá que retrabalhar o .htaccess do seu opencart, adicionando em whitelist a pasta do Prestashop. Link to comment Share on other sites More sharing options...
olliver7171 Posted August 17, 2016 Author Share Posted August 17, 2016 Desculpe minha ignorância, mas não tenho conhecimento de programação.mas se eu renomear o .htaccess do opencart ele não ficara nulo?At. Renato Link to comment Share on other sites More sharing options...
selectshop.at Posted August 17, 2016 Share Posted August 17, 2016 Eu nao disse para renomear, mas neste caso terá que editar linhas que nao permitem vc. acessar a pasta do Prestashop. Coloque aqui o código do seu .htaccess do opencart para darmos uma olhada. Fica difícil ajudar sem saber exatamente o que está escrito neste .htaccess. Pode atér ser que existe um .htaccess (do servidor) superior bloqueando o acesso.... Os requsitos mínimos para usar o Prestashop vc. já checou ? http://www.prestashop.com/forums/topic/236128-tutorial-servidor-configuracao-minima-para-ps-15/ Link to comment Share on other sites More sharing options...
olliver7171 Posted August 17, 2016 Author Share Posted August 17, 2016 Obrigado pela força...o site esta hospedado na uol..htaccess open card # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> Order deny,allow Deny from all </FilesMatch> # 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 / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] 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] ### 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 .htaccess prestashop# ~~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: rrmodel.com.br RewriteRule . - [E=REWRITEBASE:/store/] RewriteRule ^api$ api/ [L] RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [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 /store/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 Link to comment Share on other sites More sharing options...
selectshop.at Posted August 18, 2016 Share Posted August 18, 2016 Dependendo da configuracao do seu servidor, já na primeira linha encontro um erro gravíssimo: # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl O .htaccess está impedindo vc. abrir qualquer ficheiro do template do Prestashop. Porque vc. impede que robots.txt seja chamado ? Este ficheiro é muito importante para as máquinas de busca. O seu opencart é uma loja live ? Qual é a arquitetura do seu servidor ? /vars/www/html e alí por pasta própria cada software em uso ? Como vc. chama (URL) o seu Prestashop ? SEUDomínio/prestashop? Link to comment Share on other sites More sharing options...
selectshop.at Posted August 18, 2016 Share Posted August 18, 2016 Eu possuo em meu servidor no mesmo domínio várias pastas para projetos diferentes. OC, Prestashop, WP, etc. Sendo assim abro a URL: MEUDOMINIO/Prestashop, MEUDOMINIO/OC, etc. O opencart que instalei escreveu outro .htaccess. Tente com este que é original, se bem que tmb. alí consta o "deny .tpl: # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "\.(tpl|ini|log)"> Order deny,allow Deny from all </FilesMatch> # 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 / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] 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] ### 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 Link to comment Share on other sites More sharing options...
olliver7171 Posted August 18, 2016 Author Share Posted August 18, 2016 A loja que quero deixar para o domínio é o prestashop.a opencart estou usando off line o caminho da loja prestashop no servidor é raiz /rrmodel.com.br /web /store no admin do prestashop esta configurado dominio da loja : rrmodel.com.br URL base: /store Link to comment Share on other sites More sharing options...
selectshop.at Posted August 18, 2016 Share Posted August 18, 2016 Sim, só qeu o opencart está na raíz da pasta /web, por isto é que puxa o .htaccess primeiro. A sua instalacao deveria ter sido assim: raíz/rrmodel.com.br/web/opencart/ e raíz/rrmodel.com.br/web/prestashop e por isto é que nao funciona. Se vc. quiser deixar a loja Prestashop no domínio, entao terá que instalar lá aonde agora está o opencart.ou seja; raíz/rrmodel.com.br/web/ Link to comment Share on other sites More sharing options...
olliver7171 Posted August 18, 2016 Author Share Posted August 18, 2016 Ok....mas as duas lojas estao no web...uma em cada pasta, eu errei em alguma coisa fazendo assim?as duas pastas estão dentro do diretorio web.... se eu digitar rrmodel.com.br/loja aparece opencart ou rrmodel.com.br/store aparece o prestashopsó que agora quero chamar o prestashop no rrmodel.com.br porque vou colocalo no arOpenCart no servidor é raiz /rrmodel.com.br /web /lojaprestashop no servidor é raiz /rrmodel.com.br /web /store Link to comment Share on other sites More sharing options...
olliver7171 Posted August 18, 2016 Author Share Posted August 18, 2016 Desculpe-me minha ignorância, mas descobri o que estava errado...o arquivo .htaccess estava dentro da pasta store, mudei ele para a pasta web e agora esta chamando o prestashop no dominio principal. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now