PluXML : Upload images impossible

Rédigé par admin le 18 commentairese


Il m'est arrivé un probleme hier concernant l'Upload d'images vers mon site.
Tout fonctionnait parfaitement bien depuis le début et tout d'un coup ....


Retour sur la marche suivie pour la resolution ...



Tests croisés :
- Tests croisés :  
            * Avec differents fichiers uploadés
            * Avec un autre Navigateur : Message supplementaire obtenu "Il manque un répertoire
(ou quelque chose comme ca...)
            * Avec une autre station de travail
            * Avec un autre site (plusieurs sont hebergés sur mon VPS, dont un specialement crée
                       pour les tests)
                       ----> Mais toujours le même problême
                               ----> C'est donc bien mon Debian qui avait  un soucis ...mais quoi ?! 
                                       (le systeme Linux ?, PHP ?, Apache ?? ...)

- Tests (en PUTTY) sur mon Debian :  
             * Redemarage Sce Apache2  ("service apache2 restart")
             * Redemmarage de la machine (via la console OVH... tres bien faite d'ailleurs)
                     ----> pas de changement

- Recherches de pistes via Google :

       -  Je tombe sur ce forum , qui oriente plutot vers un soucis PHP, et plus precisement l'entrée
           "upload_tmp_dir"  du fichier "php.ini"  (
root@vpsxxxx:/# vim /etc/php5/apache2/php.ini
        - Le site PHP indique pour "upload_tmp_dir" : 

"...Le répertoire temporaire utilisé pour stocker les fichiers lors du chargement.
    L'utilisateur sous lequel fonctionne PHP doit avoir les droits en écriture sur ce répertoire. 
    Si non spécifié, PHP utilisera celui par défaut du système...."


Solution :

- Rajout dans le php.ini , d'une entrée "en dur" pour le dossier "temporaire" :
apres redemmarage Sce Apache, toujours KO 
(Ca devrait marcher, mais je n'etais pas sur de la syntaxe ...)


-  Finalement je me souviens que j'avais fait une manip qui avait concerné  "/tmp" :
lors de tests de restauration avec DUPLICITY j'avais specifié le dossier "/tmp" comme destination.
             ----> La restauration avait modifiés les droits d'accès !!!
                     (ci-dessous, la difference entre un Debian "vierge" et mon Debian OVH) :

         Pour rappel, le site php précisait :

"...L'utilisateur sous lequel fonctionne PHP doit avoir les droits en écriture sur ce répertoire...."                       

  -----> un simple "chmod 777 /tmp" a réglé le soucis :

- Et effectivement ....ouf  :


DClassé dans : PluXML ,Mots clés : aucun

A propos de l'auteur, admin:

18 commentaires a dit : #1

Votre site est il à jour ? je souhaite mettre un lien sur mon site a dit : #2

Votre site est il à jour ? je souhaite mettre un lien sur mon site

student mental health a dit : #3

Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.

university hospital doctors a dit : #4

I am not sure the place you're getting your info, but great topic.
I must spend a while studying much more or working out more.
Thanks for magnificent information I used to be
searching for this information for my mission.

click here a dit : #5

I have been reading out many of your stories and
i can state clever stuff. I will definitely bookmark your site.

Web Site a dit : #6

Web Site
Hey there! I know this is kinda off topic but I was wondering
which blog platform are you using for this site? I'm getting fed up of Wordpress because I've had problems with hackers and I'm
looking at options for another platform. I would be fantastic if you could
point me in the direction of a good platform.

visite site a dit : #7

visite site
I every time emailed this weblog post page to all my associates, since if like
to read it next my friends will too.

i loved this a dit : #8

i loved this
Hey! This post couldn't be written any better! Reading this post reminds me of my previous room
mate! He always kept chatting about this. I will forward this write-up to him.
Fairly certain he will have a good read. Thank you
for sharing!

helpful site a dit : #9

helpful site
I like the valuable info you provide in your articles.

I'll bookmark your blog and check again here regularly.
I am quite sure I'll learn many new stuff right here!
Best of luck for the next!

Learn More Here a dit : #10

Learn More Here
Paragraph writing is also a fun, if you be acquainted with after that you can write otherwise it is complicated to write.

advice a dit : #11

Employs Tried and Tested Methods - Being in the business for the pretty number
of years and serving a broad spectrum of clients, they know
what is going to act as a strong tool for business.
If the study isn't done thoroughly then each of the efforts of promoting a web site will be in vain. Google Analytics
For e-Commerce: Being the proud owner of your website, it is crucial that you should install an analytics tool on your web site.

next page a dit : #12

next page
I think the admin of this site is in fact working hard for his web site, because here every material is quality based information.

click site a dit : #13

click site
When some one searches for his essential thing, therefore he/she needs to be available that in detail, so that
thing is maintained over here.

More Bonuses a dit : #14

More Bonuses
I have been surfing on-line greater than 3 hours these days, but I never found any interesting article like yours.
It's lovely value enough for me. Personally, if all webmasters and bloggers made just right content material as you
probably did, the internet can be much more helpful than ever before.

find this a dit : #15

find this
What's Taking place i am new to this, I stumbled upon this I have found It absolutely useful and
it has aided me out loads. I'm hoping to give a contribution & help different
customers like its aided me. Great job.

world's most amazing videos episode 3 a dit : #16

Great post.

her latest blog a dit : #17

her latest blog
Thanks for the marvelous posting! I definitely enjoyed reading it, you are
a great author. I will ensure that I bookmark your blog and will eventually come back in the future.
I want to encourage you to continue your great writing,
have a nice weekend!

official website a dit : #18

official website
This post is truly a fastidious one it assists new net users,
who are wishing in favor of blogging.

rFil RSS des commentaires de cet article

Écrire un commentaire