le problème est que je n’arrive pas a exécuter une commande linux avec php ca marche pas
<?php
// test execute commande
exec('/usr/bin/cm15 e1 on');
?>
et la pareil, marche pas.
<?php
// test execute commande
exec('cp /home/serveur/liste.txt /home/serveur/liste-test2.txt');
?>
Mais dans le shell ca marche
root@debian:~# /usr/bin/cm15 e1 on
root@debian:~#
root@debian:/home/serveur# cp -v /home/serveur/liste.txt /home/serveur/liste-test.txt
`/home/serveur/liste.txt' -> `/home/serveur/liste-test.txt'
root@debian:/home/serveur#
Pourtant j’ai fait :
chmod 777 /var/www/
puis
root@debian:/home/serveur# chown -R root:www-data /var/www
root@debian:/home/serveur# find /var/www -type f -print0 | xargs -0 chmod -t,a-rwxs,u+rw,g+r
root@debian:/home/serveur# find /var/www -type d -print0 | xargs -0 chmod -t,a-rwxs,u+rwx,g+rx
root@debian:/home/serveur#
et
root@debian:/home/serveur# chown -R www-data:www-data /var/www
root@debian:/home/serveur# find /var/www -type f -print0 | xargs -0 chmod -t,a-rwxs,u+rw
root@debian:/home/serveur# find /var/www -type d -print0 | xargs -0 chmod -t,a-rwxs,u+rwx
root@debian:/home/serveur#
Bonjour,
J’ai aussi essayé avec “exec_shell()” mais c’est pareil.
PHP Version 5.3.3-7+squeeze8
Apache Version Apache/2.2.16 (Debian)
Quel est le nom de module qu’il faut que je regarde dans phpinfo ?
L’installation est fait par défaut
apt-get install apache2
apt-get install php5
apt-get install mysql-server
apt-get install phpmyadmin
Je n’ai pas touché au module je ne sais pas comment on fait sous linux ?
Quel est la commande pour voir les modules installé ?
Merci.