ricki44 Posted January 14, 2011 Share Posted January 14, 2011 Bonjour,j'ai migré mon site (hébergé chez ovh), en local...ok, d'habitude on fait plutot l'inverse, mais bondonc après avoir installé LAMP sur ubuntu, j'ai copié-coller mon site (en modifiant les fichiers de conf), importé ma base, rencontré quelques déboires avec .htaccess et url_rewriting de apache2...mais bon, j'y arrive à peu près, site accessible en local sur : http://localhost/prestashop/et j'accède au Back-Office (après avoir modifié le mot de passe en base avec MD5)je peux, créer des catégories, des produits, et les consulter sur le sitemais à priori, j'ai un pb de droit, par exemple sur l'upload, j'ai voulu modifié mon favicon :Warning: copy(/media/www-dev/prestashop/img/favicon.ico): failed to open stream: Permission denied in /media/www-dev/prestashop/classes/AdminTab.php on line 766 les fichiers que j'ai modifié : /etc/apache2/http.conf ServerName localhost /etc/apache2/sites-available/default ServerAdmin webmaster@localhost DocumentRoot /var/www Options FollowSymLinks AllowOverride None ErrorDocument 403 "http://domain.tld/public" Options Indexes FollowSymLinks MultiViews AllowOverride None Order Deny,Allow Deny from all Allow from 127.0.0.1 # local Allow from 192.168.1.0/24 # reseau Alias /prestashop /media/www-dev/prestashop ErrorDocument 403 "http://domain.tld/public" Options Indexes FollowSymLinks MultiViews AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.1 # Local Allow from 192.168.1.0/24 # Réseau Allow from .w3.org # W3C Allow from sandbox.paypal.com # Paypal ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 j'ai aussi créé un utilisateur webadmin pour sécuriser mes pages(http://doc.ubuntu-fr.org/apache2), à l'aide des commandes suivantes : sudo adduser webadmin sudo chown -Rf webadmin:www-data /var/www sudo find /var/www -type d -exec chmod 750 {} \; sudo find /var/www -type f -exec chmod 640 {} \; sudo chmod -R 644 /var/www sudo chmod a+X /var/www Merci pour votre aiderésolu : mettre les droits 777 sur /img, je ne sais pas si c'est la meilleure solution, mais ca fonctionne... sudo chmod -R 777 img 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