Finding out what user Apache is running as?
ps aux | egrep '(apache|httpd)'
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'
Change folder permissions and ownership
sudo chown username:group directory For Recursivly
sudo chown -R username:group directory sudo chown raihan:raihan /var/www/html
Mount a NTFS drive manually
sudo vi /etc/fstab
# Add the below line to the file
UUID=A82A91682A913472 /media/tv ntfs defaults,nls=utf8,uid=1000,umask=0000 0 0
#UUID is the drive partition ID