I'm trying to mount an iscsi virtual disk, but if I execute the command through the exec function in php this give me that error: mount: special device /dev/sdf1 does not exist.
But if I run the command directly in the console it run well!!
What can I do?
I'm obtaining the /dev/sdf1 in a good way, and it exists, but only through php doesn't work.
Thanks
Ben bu aynı ortamı olduğunu varsayalım, sudo ile komutu çalışan ve sudo ile her zaman www-data kullanıcı olarak konsolda çalıştırın, böylece ediyorum.
sudo mount -t ext3 /dev/sdf1 /san_disks/RIBS_2
Sudoers dosyası bu satırları var:
www-data ALL = (root) /usr/bin/iscsiadm, /bin/mount, /bin/umount
%www-data ALL=NOPASSWD: ALL
Ve bu konsolda çalışır.