Is there any way for add entry to /etc/fstab using php? I have done lvcreate
and mount each volume into mountfolder using php.
The last step is to edit the mount options in the /etc/fstab file so that the new mount persists after reboot. No documents found for this step using php code.
I found the solution for this. Yes, we can use ssh vi code editor using phpseclib. Refer my previous post to connect ssh using phpseclib.
Then my code to write vi /etc/fstab as follows: