Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

exec et php

82 réponses
Avatar
nicolas.pechon
Bonjour,

J'ai un petit soucis avec la fonction exec d'un script php.

le script suivant ne fonctionne pas:
<?php
exec("pdflatex fichier.tex");
?>

Je soupçonne un problème de configuration d'où ma question ici.

En effet, ce script fonctionne sur un autre ordinateur.

Je précise que taper pdflatex fichier.tex dans un shell fonctionne
parfaitement.

De même:
<?php
exec('ping -c 3 127.0.0.1', $reponse);¶
print_r($reponse);
?>

Fonctionne.

Ça doit être un truc tout bête, mais je ne trouve pas. :-(

Merci d'avance de vous pencher sur mon problème ou de d'indiquer si je
ne suis pas au bon endroit ou je pourrais poser ma question.

10 réponses

1 2 3 4 5
Avatar
Bernard Schoenacker
Le Fri, 20 Nov 2015 16:11:27 +0100,
a écrit :

Le 2015-11-20 14:58, Eric Degenetais a écrit :
> Petite question: cette font c'est un standard, ou un ajout?
> Si c'est un ajout, comment a-t'elle été déployée?
> Dans un cas extrême on peut imaginer que si tu l'as copié toi-même
> vers le répertoire de déploiement, ton compte a les droits d'accès
> mais pas le compte applicatif www-data (je schématise, là, mais
> c'est le genre de problème à rechercher à mon avis).


Ce sont les paquets de base de la testing.




bonjour,

serait il possible de comparer :

rmadison texlive-fonts-recommended
texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable | all
texlive-fonts-recommended | 2012.20120611-5 | oldstable | all
texlive-fonts-recommended | 2014.20141024-2 | stable | all
texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd | all
texlive-fonts-recommended | 2015.20151016-1 | testing | all
texlive-fonts-recommended | 2015.20151116-1 | unstable | all


apt-cache policy
texlive-fonts-recommended texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 100
100 /var/lib/dpkg/status
2014.20141024-2 500
500 http://ftp.fr.debian.org/debian jessie/main i386 Packages


slt
bernard
Avatar
nicolas.pechon
Le 2015-11-20 16:45, Bernard Schoenacker a écrit :
Le Fri, 20 Nov 2015 16:11:27 +0100,
a écrit :

Le 2015-11-20 14:58, Eric Degenetais a écrit :
> Petite question: cette font c'est un standard, ou un ajout?
> Si c'est un ajout, comment a-t'elle été déployée?
> Dans un cas extrême on peut imaginer que si tu l'as copié toi-même
> vers le répertoire de déploiement, ton compte a les droits d'accès
> mais pas le compte applicatif www-data (je schématise, là, mais
> c'est le genre de problème à rechercher à mon avis).


Ce sont les paquets de base de la testing.




bonjour,

serait il possible de comparer :

rmadison texlive-fonts-recommended
texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable | all
texlive-fonts-recommended | 2012.20120611-5 | oldstable | all
texlive-fonts-recommended | 2014.20141024-2 | stable | all
texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd | all
texlive-fonts-recommended | 2015.20151016-1 | testing | all
texlive-fonts-recommended | 2015.20151116-1 | unstable | all



Je n'ai pas cette fonction.
un apt-cache search rmadisson

Ne donne rien. (?)


apt-cache policy
texlive-fonts-recommended texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 100
100 /var/lib/dpkg/status
2014.20141024-2 500
500 http://ftp.fr.debian.org/debian jessie/main i386 Packages



# apt-cache policy texlive-fonts-recommended texlive-fonts-recommended
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 0
900 http://ftp.fr.debian.org/debian/ stretch/main amd64 Packages
900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main amd64
Packages
151 http://ftp.fr.debian.org/debian/ unstable/main amd64
Packages
151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main amd64
Packages
100 /var/lib/dpkg/status
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 0
900 http://ftp.fr.debian.org/debian/ stretch/main amd64 Packages
900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main amd64
Packages
151 http://ftp.fr.debian.org/debian/ unstable/main amd64
Packages
151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main amd64
Packages
100 /var/lib/dpkg/status
Avatar
Bernard Schoenacker
Le Fri, 20 Nov 2015 17:09:08 +0100,
a écrit :

Le 2015-11-20 16:45, Bernard Schoenacker a écrit :
> Le Fri, 20 Nov 2015 16:11:27 +0100,
> a écrit :
>
>> Le 2015-11-20 14:58, Eric Degenetais a écrit :
>> > Petite question: cette font c'est un standard, ou un ajout?
>> > Si c'est un ajout, comment a-t'elle été déployée?
>> > Dans un cas extrême on peut imaginer que si tu l'as copié
>> > toi-même vers le répertoire de déploiement, ton compte a les
>> > droits d'accès mais pas le compte applicatif www-data (je
>> > schématise, là, mais c'est le genre de problème à rechercher à
>> > mon avis).
>>
>>
>> Ce sont les paquets de base de la testing.
>>
>
> bonjour,
>
> serait il possible de comparer :
>
> rmadison texlive-fonts-recommended
> texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable | all
> texlive-fonts-recommended | 2012.20120611-5 | oldstable | all
> texlive-fonts-recommended | 2014.20141024-2 | stable | all
> texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd | all
> texlive-fonts-recommended | 2015.20151016-1 | testing | all
> texlive-fonts-recommended | 2015.20151116-1 | unstable |all

Je n'ai pas cette fonction.
un apt-cache search rmadisson

Ne donne rien. (?)


> apt-cache policy
> texlive-fonts-recommended texlive-fonts-recommended:
> Installé : 2015.20151016-1
> Candidat : 2015.20151016-1
> Table de version :
> *** 2015.20151016-1 100
> 100 /var/lib/dpkg/status
> 2014.20141024-2 500
> 500 http://ftp.fr.debian.org/debian jessie/main i386
> Packages
# apt-cache policy texlive-fonts-recommended texlive-fonts-recommended
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 0
900 http://ftp.fr.debian.org/debian/ stretch/main amd64
Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
amd64 Packages
151 http://ftp.fr.debian.org/debian/ unstable/main amd64
Packages
151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main
amd64 Packages
100 /var/lib/dpkg/status
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 0
900 http://ftp.fr.debian.org/debian/ stretch/main amd64
Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
amd64 Packages
151 http://ftp.fr.debian.org/debian/ unstable/main amd64
Packages
151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main
amd64 Packages
100 /var/lib/dpkg/status





bonjour,

il te suffit de chercher un peut à côté :

apt-file search rmadison
devscripts: /usr/bin/rmadison
devscripts: /usr/share/man/de/man1/rmadison.1.gz
devscripts: /usr/share/man/fr/man1/rmadison.1.gz
devscripts: /usr/share/man/man1/rmadison.1.gz


donc maintenant que tu connais le nom du paquet : devscripts

il suffit de faire : sudo apt-get install devscripts

la page de man : http://man.he.net/man1/rmadison


slt
bernard
Avatar
Bernard Schoenacker
Le Fri, 20 Nov 2015 17:44:22 +0100,
Bernard Schoenacker a écrit :

Le Fri, 20 Nov 2015 17:09:08 +0100,
a écrit :

> Le 2015-11-20 16:45, Bernard Schoenacker a écrit :
> > Le Fri, 20 Nov 2015 16:11:27 +0100,
> > a écrit :
> >
> >> Le 2015-11-20 14:58, Eric Degenetais a écrit :
> >> > Petite question: cette font c'est un standard, ou un ajout?
> >> > Si c'est un ajout, comment a-t'elle été déployée?
> >> > Dans un cas extrême on peut imaginer que si tu l'as copié
> >> > toi-même vers le répertoire de déploiement, ton compte a les
> >> > droits d'accès mais pas le compte applicatif www-data (je
> >> > schématise, là, mais c'est le genre de problème à rechercher à
> >> > mon avis).
> >>
> >>
> >> Ce sont les paquets de base de la testing.
> >>
> >
> > bonjour,
> >
> > serait il possible de comparer :
> >
> > rmadison texlive-fonts-recommended
> > texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable |
> > all texlive-fonts-recommended | 2012.20120611-5 |
> > oldstable | all texlive-fonts-recommended |
> > 2014.20141024-2 | stable | all
> > texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd |
> > all texlive-fonts-recommended | 2015.20151016-1 |
> > testing | all texlive-fonts-recommended |
> > 2015.20151116-1 | unstable |all

> Je n'ai pas cette fonction.
> un apt-cache search rmadisson
>
> Ne donne rien. (?)
>
>
> > apt-cache policy
> > texlive-fonts-recommended texlive-fonts-recommended:
> > Installé : 2015.20151016-1
> > Candidat : 2015.20151016-1
> > Table de version :
> > *** 2015.20151016-1 100
> > 100 /var/lib/dpkg/status
> > 2014.20141024-2 500
> > 500 http://ftp.fr.debian.org/debian jessie/main i386
> > Packages
> # apt-cache policy texlive-fonts-recommended
> texlive-fonts-recommended texlive-fonts-recommended:
> Installé : 2015.20151016-1
> Candidat : 2015.20151016-1
> Table de version :
> *** 2015.20151016-1 0
> 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
> Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
> amd64 Packages
> 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
> Packages
> 151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> texlive-fonts-recommended:
> Installé : 2015.20151016-1
> Candidat : 2015.20151016-1
> Table de version :
> *** 2015.20151016-1 0
> 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
> Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
> amd64 Packages
> 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
> Packages
> 151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main
> amd64 Packages
> 100 /var/lib/dpkg/status
>
>

bonjour,

il te suffit de chercher un peut à côté :

apt-file search rmadison
devscripts: /usr/bin/rmadison
devscripts: /usr/share/man/de/man1/rmadison.1.gz
devscripts: /usr/share/man/fr/man1/rmadison.1.gz
devscripts: /usr/share/man/man1/rmadison.1.gz


donc maintenant que tu connais le nom du paquet : devscripts

il suffit de faire : sudo apt-get install devscripts

la page de man : http://man.he.net/man1/rmadison


slt
bernard




bonjour,

j'ai oublié d'indiquer la version disponible :

rmadison devscripts -a amd64

devscripts | 2.10.69+squeeze4 | oldoldstable | amd64 i386
devscripts | 2.12.4~bpo60+1 | squeeze-backports | amd64 i386
devscripts | 2.12.6+deb7u2 | oldstable | amd64 i386
devscripts | 2.14.11~bpo70+1 | wheezy-backports | amd64 i386
devscripts | 2.15.3 | stable | amd64 i386
devscripts | 2.15.9~bpo8+1 | jessie-backports | amd64 i386
devscripts | 2.15.9 | testing | amd64 i386
devscripts | 2.15.9 | unstable | amd64 i386


slt
bernard
Avatar
nicolas.pechon
Le 2015-11-20 18:04, Bernard Schoenacker a écrit :
Le Fri, 20 Nov 2015 17:44:22 +0100,
Bernard Schoenacker a écrit :

Le Fri, 20 Nov 2015 17:09:08 +0100,
a écrit :

> Le 2015-11-20 16:45, Bernard Schoenacker a écrit :
> > Le Fri, 20 Nov 2015 16:11:27 +0100,
> > a écrit :
> >
> >> Le 2015-11-20 14:58, Eric Degenetais a écrit :
> >> > Petite question: cette font c'est un standard, ou un ajout?
> >> > Si c'est un ajout, comment a-t'elle été déployée?
> >> > Dans un cas extrême on peut imaginer que si tu l'as copié
> >> > toi-même vers le répertoire de déploiement, ton compte a les
> >> > droits d'accès mais pas le compte applicatif www-data (je
> >> > schématise, là, mais c'est le genre de problème à rechercher à
> >> > mon avis).
> >>
> >>
> >> Ce sont les paquets de base de la testing.
> >>
> >
> > bonjour,
> >
> > serait il possible de comparer :
> >
> > rmadison texlive-fonts-recommended
> > texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable |
> > all texlive-fonts-recommended | 2012.20120611-5 |
> > oldstable | all texlive-fonts-recommended |
> > 2014.20141024-2 | stable | all
> > texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd |
> > all texlive-fonts-recommended | 2015.20151016-1 |
> > testing | all texlive-fonts-recommended |
> > 2015.20151116-1 | unstable |all

> Je n'ai pas cette fonction.
> un apt-cache search rmadisson
>
> Ne donne rien. (?)
>
>
> > apt-cache policy
> > texlive-fonts-recommended texlive-fonts-recommended:
> > Installé : 2015.20151016-1
> > Candidat : 2015.20151016-1
> > Table de version :
> > *** 2015.20151016-1 100
> > 100 /var/lib/dpkg/status
> > 2014.20141024-2 500
> > 500 http://ftp.fr.debian.org/debian jessie/main i386
> > Packages
> # apt-cache policy texlive-fonts-recommended
> texlive-fonts-recommended texlive-fonts-recommended:
> Installé : 2015.20151016-1
> Candidat : 2015.20151016-1
> Table de version :
> *** 2015.20151016-1 0
> 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
> Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
> amd64 Packages
> 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
> Packages
> 151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> texlive-fonts-recommended:
> Installé : 2015.20151016-1
> Candidat : 2015.20151016-1
> Table de version :
> *** 2015.20151016-1 0
> 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
> Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
> amd64 Packages
> 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
> Packages
> 151 http://ftp.u-picardie.fr/mirror/debian/ unstable/main
> amd64 Packages
> 100 /var/lib/dpkg/status
>
>

bonjour,

il te suffit de chercher un peut à côté :

apt-file search rmadison
devscripts: /usr/bin/rmadison
devscripts: /usr/share/man/de/man1/rmadison.1.gz
devscripts: /usr/share/man/fr/man1/rmadison.1.gz
devscripts: /usr/share/man/man1/rmadison.1.gz


donc maintenant que tu connais le nom du paquet : devscripts

il suffit de faire : sudo apt-get install devscripts

la page de man : http://man.he.net/man1/rmadison


slt
bernard




bonjour,

j'ai oublié d'indiquer la version disponible :

rmadison devscripts -a amd64

devscripts | 2.10.69+squeeze4 | oldoldstable | amd64 i386
devscripts | 2.12.4~bpo60+1 | squeeze-backports | amd64 i386
devscripts | 2.12.6+deb7u2 | oldstable | amd64 i386
devscripts | 2.14.11~bpo70+1 | wheezy-backports | amd64 i386
devscripts | 2.15.3 | stable | amd64 i386
devscripts | 2.15.9~bpo8+1 | jessie-backports | amd64 i386
devscripts | 2.15.9 | testing | amd64 i386
devscripts | 2.15.9 | unstable | amd64 i386





# rmadison texlive-fonts-recommended
texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable | all
texlive-fonts-recommended | 2012.20120611-5 | oldstable | all
texlive-fonts-recommended | 2014.20141024-2 | stable | all
texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd | all
texlive-fonts-recommended | 2015.20151016-1 | testing | all
texlive-fonts-recommended | 2015.20151116-1 | unstable | all
Avatar
Bernard Schoenacker
Le Fri, 20 Nov 2015 18:55:58 +0100,
a écrit :

Le 2015-11-20 18:04, Bernard Schoenacker a écrit :
> Le Fri, 20 Nov 2015 17:44:22 +0100,
> Bernard Schoenacker a écrit :
>
>> Le Fri, 20 Nov 2015 17:09:08 +0100,
>> a écrit :
>>
>> > Le 2015-11-20 16:45, Bernard Schoenacker a écrit :
>> > > Le Fri, 20 Nov 2015 16:11:27 +0100,
>> > > a écrit :
>> > >
>> > >> Le 2015-11-20 14:58, Eric Degenetais a écrit :
>> > >> > Petite question: cette font c'est un standard, ou un ajout?
>> > >> > Si c'est un ajout, comment a-t'elle été déployée?
>> > >> > Dans un cas extrême on peut imaginer que si tu l'as copié
>> > >> > toi-même vers le répertoire de déploiement, ton compte a les
>> > >> > droits d'accès mais pas le compte applicatif www-data (je
>> > >> > schématise, là, mais c'est le genre de problème à
>> > >> > rechercher à mon avis).
>> > >>
>> > >>
>> > >> Ce sont les paquets de base de la testing.
>> > >>
>> > >
>> > > bonjour,
>> > >
>> > > serait il possible de comparer :
>> > >
>> > > rmadison texlive-fonts-recommended
>> > > texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable
>> > > | all texlive-fonts-recommended | 2012.20120611-5 |
>> > > oldstable | all texlive-fonts-recommended |
>> > > 2014.20141024-2 | stable | all
>> > > texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd
>> > > | all texlive-fonts-recommended | 2015.20151016-1 |
>> > > testing | all texlive-fonts-recommended |
>> > > 2015.20151116-1 | unstable |all
>>
>> > Je n'ai pas cette fonction.
>> > un apt-cache search rmadisson
>> >
>> > Ne donne rien. (?)
>> >
>> >
>> > > apt-cache policy
>> > > texlive-fonts-recommended texlive-fonts-recommended:
>> > > Installé : 2015.20151016-1
>> > > Candidat : 2015.20151016-1
>> > > Table de version :
>> > > *** 2015.20151016-1 100
>> > > 100 /var/lib/dpkg/status
>> > > 2014.20141024-2 500
>> > > 500 http://ftp.fr.debian.org/debian jessie/main i386
>> > > Packages
>> > # apt-cache policy texlive-fonts-recommended
>> > texlive-fonts-recommended texlive-fonts-recommended:
>> > Installé : 2015.20151016-1
>> > Candidat : 2015.20151016-1
>> > Table de version :
>> > *** 2015.20151016-1 0
>> > 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
>> > Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
>> > amd64 Packages
>> > 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
>> > Packages
>> > 151 http://ftp.u-picardie.fr/mirror/debian/
>> > unstable/main amd64 Packages
>> > 100 /var/lib/dpkg/status
>> > texlive-fonts-recommended:
>> > Installé : 2015.20151016-1
>> > Candidat : 2015.20151016-1
>> > Table de version :
>> > *** 2015.20151016-1 0
>> > 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
>> > Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
>> > amd64 Packages
>> > 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
>> > Packages
>> > 151 http://ftp.u-picardie.fr/mirror/debian/
>> > unstable/main amd64 Packages
>> > 100 /var/lib/dpkg/status
>> >
>> >
>>
>> bonjour,
>>
>> il te suffit de chercher un peut à côté :
>>
>> apt-file search rmadison
>> devscripts: /usr/bin/rmadison
>> devscripts: /usr/share/man/de/man1/rmadison.1.gz
>> devscripts: /usr/share/man/fr/man1/rmadison.1.gz
>> devscripts: /usr/share/man/man1/rmadison.1.gz
>>
>>
>> donc maintenant que tu connais le nom du paquet : devscripts
>>
>> il suffit de faire : sudo apt-get install devscripts
>>
>> la page de man : http://man.he.net/man1/rmadison
>>
>>
>> slt
>> bernard
>>
>
> bonjour,
>
> j'ai oublié d'indiquer la version disponible :
>
> rmadison devscripts -a amd64
>
> devscripts | 2.10.69+squeeze4 | oldoldstable | amd64 i386
> devscripts | 2.12.4~bpo60+1 | squeeze-backports | amd64 i386
> devscripts | 2.12.6+deb7u2 | oldstable | amd64 i386
> devscripts | 2.14.11~bpo70+1 | wheezy-backports | amd64 i386
> devscripts | 2.15.3 | stable | amd64 i386
> devscripts | 2.15.9~bpo8+1 | jessie-backports | amd64 i386
> devscripts | 2.15.9 | testing | amd64 i386
> devscripts | 2.15.9 | unstable | amd64 i386
>


# rmadison texlive-fonts-recommended
texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable | all
texlive-fonts-recommended | 2012.20120611-5 | oldstable | all
texlive-fonts-recommended | 2014.20141024-2 | stable | all
texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd | all
texlive-fonts-recommended | 2015.20151016-1 | testing | all
texlive-fonts-recommended | 2015.20151116-1 | unstable | all





bonjour,

apt-cache policy texlive-fonts-recommended
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 100
100 /var/lib/dpkg/status
2014.20141024-2 500
500 http://ftp.fr.debian.org/debian jessie/main i386 Packages


serait il possible de vérifier si c'est installé ?

autrement c'est un problème de "$PATH" pour texlive-fonts-recommended
et là je sèche ( liste gut ? ) ...

slt
bernard
Avatar
Sylvain L. Sauvage
[…]
Une compilation via un shell www-data est corect



Puisque ça fonctionne en utilisateur www-data en shell, ce
n’est pas un problème avec cet utilisateur mais bien une
différence dans l’environnement d’exécution d e PHP (soit de PHP
lui-même, soit de blocages qu’Apache fait sur le processus PHP).

Il doit y avoir d’autres outils pour vérifier tout ç a mais,
perso, je tenterais de voir une différence entre les deux cas
(shell / PHP) en passant par strace.

[…]
# rmadison texlive-fonts-recommended
[…]



Au passage, j’aimerais qu’on m’explique à quoi ça sert de
vérifier les versions disponibles *sur les dépôts* , sur tout
après qu’on a déjà vérifié les paquets *installés* …

--
Sylvain Sauvage
Avatar
nicolas.pechon
Le 2015-11-20 19:38, Bernard Schoenacker a écrit :
Le Fri, 20 Nov 2015 18:55:58 +0100,
a écrit :

Le 2015-11-20 18:04, Bernard Schoenacker a écrit :
> Le Fri, 20 Nov 2015 17:44:22 +0100,
> Bernard Schoenacker a écrit :
>
>> Le Fri, 20 Nov 2015 17:09:08 +0100,
>> a écrit :
>>
>> > Le 2015-11-20 16:45, Bernard Schoenacker a écrit :
>> > > Le Fri, 20 Nov 2015 16:11:27 +0100,
>> > > a écrit :
>> > >
>> > >> Le 2015-11-20 14:58, Eric Degenetais a écrit :
>> > >> > Petite question: cette font c'est un standard, ou un ajout?
>> > >> > Si c'est un ajout, comment a-t'elle été déployée?
>> > >> > Dans un cas extrême on peut imaginer que si tu l'as copié
>> > >> > toi-même vers le répertoire de déploiement, ton compte a les
>> > >> > droits d'accès mais pas le compte applicatif www-data (je
>> > >> > schématise, là, mais c'est le genre de problème à
>> > >> > rechercher à mon avis).
>> > >>
>> > >>
>> > >> Ce sont les paquets de base de la testing.
>> > >>
>> > >
>> > > bonjour,
>> > >
>> > > serait il possible de comparer :
>> > >
>> > > rmadison texlive-fonts-recommended
>> > > texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable
>> > > | all texlive-fonts-recommended | 2012.20120611-5 |
>> > > oldstable | all texlive-fonts-recommended |
>> > > 2014.20141024-2 | stable | all
>> > > texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd
>> > > | all texlive-fonts-recommended | 2015.20151016-1 |
>> > > testing | all texlive-fonts-recommended |
>> > > 2015.20151116-1 | unstable |all
>>
>> > Je n'ai pas cette fonction.
>> > un apt-cache search rmadisson
>> >
>> > Ne donne rien. (?)
>> >
>> >
>> > > apt-cache policy
>> > > texlive-fonts-recommended texlive-fonts-recommended:
>> > > Installé : 2015.20151016-1
>> > > Candidat : 2015.20151016-1
>> > > Table de version :
>> > > *** 2015.20151016-1 100
>> > > 100 /var/lib/dpkg/status
>> > > 2014.20141024-2 500
>> > > 500 http://ftp.fr.debian.org/debian jessie/main i386
>> > > Packages
>> > # apt-cache policy texlive-fonts-recommended
>> > texlive-fonts-recommended texlive-fonts-recommended:
>> > Installé : 2015.20151016-1
>> > Candidat : 2015.20151016-1
>> > Table de version :
>> > *** 2015.20151016-1 0
>> > 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
>> > Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
>> > amd64 Packages
>> > 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
>> > Packages
>> > 151 http://ftp.u-picardie.fr/mirror/debian/
>> > unstable/main amd64 Packages
>> > 100 /var/lib/dpkg/status
>> > texlive-fonts-recommended:
>> > Installé : 2015.20151016-1
>> > Candidat : 2015.20151016-1
>> > Table de version :
>> > *** 2015.20151016-1 0
>> > 900 http://ftp.fr.debian.org/debian/ stretch/main amd64
>> > Packages 900 http://ftp.u-picardie.fr/mirror/debian/ stretch/main
>> > amd64 Packages
>> > 151 http://ftp.fr.debian.org/debian/ unstable/main amd64
>> > Packages
>> > 151 http://ftp.u-picardie.fr/mirror/debian/
>> > unstable/main amd64 Packages
>> > 100 /var/lib/dpkg/status
>> >
>> >
>>
>> bonjour,
>>
>> il te suffit de chercher un peut à côté :
>>
>> apt-file search rmadison
>> devscripts: /usr/bin/rmadison
>> devscripts: /usr/share/man/de/man1/rmadison.1.gz
>> devscripts: /usr/share/man/fr/man1/rmadison.1.gz
>> devscripts: /usr/share/man/man1/rmadison.1.gz
>>
>>
>> donc maintenant que tu connais le nom du paquet : devscripts
>>
>> il suffit de faire : sudo apt-get install devscripts
>>
>> la page de man : http://man.he.net/man1/rmadison
>>
>>
>> slt
>> bernard
>>
>
> bonjour,
>
> j'ai oublié d'indiquer la version disponible :
>
> rmadison devscripts -a amd64
>
> devscripts | 2.10.69+squeeze4 | oldoldstable | amd64 i386
> devscripts | 2.12.4~bpo60+1 | squeeze-backports | amd64 i386
> devscripts | 2.12.6+deb7u2 | oldstable | amd64 i386
> devscripts | 2.14.11~bpo70+1 | wheezy-backports | amd64 i386
> devscripts | 2.15.3 | stable | amd64 i386
> devscripts | 2.15.9~bpo8+1 | jessie-backports | amd64 i386
> devscripts | 2.15.9 | testing | amd64 i386
> devscripts | 2.15.9 | unstable | amd64 i386
>


# rmadison texlive-fonts-recommended
texlive-fonts-recommended | 2009-11+squeeze1 | oldoldstable | all
texlive-fonts-recommended | 2012.20120611-5 | oldstable | all
texlive-fonts-recommended | 2014.20141024-2 | stable | all
texlive-fonts-recommended | 2014.20141024-2 | stable-kfreebsd | all
texlive-fonts-recommended | 2015.20151016-1 | testing | all
texlive-fonts-recommended | 2015.20151116-1 | unstable | all





bonjour,

apt-cache policy texlive-fonts-recommended
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 100
100 /var/lib/dpkg/status
2014.20141024-2 500
500 http://ftp.fr.debian.org/debian jessie/main i386 Packages


serait il possible de vérifier si c'est installé ?

autrement c'est un problème de "$PATH" pour texlive-fonts-recommended
et là je sèche ( liste gut ? ) ...

slt
bernard




# apt-cache policy texlive-fonts-recommended
texlive-fonts-recommended:
Installé : 2015.20151016-1
Candidat : 2015.20151016-1
Table de version :
*** 2015.20151016-1 0
900 http://ftp.fr.debian.org/debian/ stretch/main amd64 Packages
500 http://ftp.u-picardie.fr/mirror/debian/ stretch/main amd64
Packages
500 http://ftp.fr.debian.org/debian/ unstable/main amd64
Packages
500 http://ftp.u-picardie.fr/mirror/debian/ unstable/main amd64
Packages
100 /var/lib/dpkg/status

Le paquet est bien installer.

Peut-on modifier le PATH?
Avatar
nicolas.pechon
Le 2015-11-20 19:47, Sylvain L. Sauvage a écrit :
[…]
Une compilation via un shell www-data est corect



Puisque ça fonctionne en utilisateur www-data en shell, ce
n’est pas un problème avec cet utilisateur mais bien une
différence dans l’environnement d’exécution de PHP (soit de PHP
lui-même, soit de blocages qu’Apache fait sur le processus PHP).

Il doit y avoir d’autres outils pour vérifier tout ça mais,
perso, je tenterais de voir une différence entre les deux cas
(shell / PHP) en passant par strace.



Heu la, je connaît pas.
Comment puis-je procéder?


[…]
# rmadison texlive-fonts-recommended
[…]



Au passage, j’aimerais qu’on m’explique à quoi ça sert de
vérifier les versions disponibles *sur les dépôts* , surtout
après qu’on a déjà vérifié les paquets *installés* …



Je pense que l'idée et de faire des test pour trouver quelque chose. A
défaut....
Avatar
Steve Fouchet
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--rlStaE6If254L0dMVITbCvlaDj126sn7b
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

+1 pour la solution de Sylvain
Je connais pour ainsi dire rien en Latex et ne suis pas un grand fan de
PHP donc ce n'est qu'une piste et non une solution.
strace -o shell.log -u www-data pdflatex [...]
idem avec apache

Avant de chercher en profondeur dans la sortie des strace
En quick & dirty, je ferai quelque recherche sur le chargement du
fichier de map, et la police utilisée.
quelque chose comme :
grep -A 20 -B 20 [/path/fic.map|font_name] shell.log

Bon courage


Le 20/11/2015 20:24, a écrit :
Le 2015-11-20 19:47, Sylvain L. Sauvage a écrit :
[…]
Une compilation via un shell www-data est corect



Puisque ça fonctionne en utilisateur www-data en shell, ce
n’est pas un problème avec cet utilisateur mais bien une
différence dans l’environnement d’exécution de PHP (soit de PHP
lui-même, soit de blocages qu’Apache fait sur le processu s PHP).

Il doit y avoir d’autres outils pour vérifier tout ç a mais,
perso, je tenterais de voir une différence entre les deux cas
(shell / PHP) en passant par strace.



Heu la, je connaît pas.
Comment puis-je procéder?


[…]
# rmadison texlive-fonts-recommended
[…]



Au passage, j’aimerais qu’on m’explique à quoi ça sert de
vérifier les versions disponibles *sur les dépôts* , su rtout
après qu’on a déjà vérifié les paquet s *installés* …



Je pense que l'idée et de faire des test pour trouver quelque chos e. A
défaut....





--rlStaE6If254L0dMVITbCvlaDj126sn7b
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iL4EAREKAGYFAlZPieVfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
bnBncC5maWZ0aGhvcnNlbWFuLm5ldEU2QThCQ0U4Rjc4OTM4OTVBREI4Qjg1REI5
NDI5NUM1OURFMzk0NjQACgkQuUKVxZ3jlGSt4wD/V7aNKRz4PIErF7ldfrIvUfpn
pbausjEms4DoODYL+PcA+QECKCQFI0b3Rdzjhd3eeo2bpJbmvkY7as2LDTyeKQLC
=fxtX
-----END PGP SIGNATURE-----

--rlStaE6If254L0dMVITbCvlaDj126sn7b--
1 2 3 4 5