When Linux comes in mind, we always imagine about its powerful security and privileges for all files and directories. we have to change right being as administrator.
If you have configured as per any tutorials , then it'll perfectly work for your web development. But some things are still remaining.
In most of projects, we want at-least some small document or photo up-loader. So, by default, if you direct uses code of upload in php, it'll give error.
so, follow these steps for healing this problem.
step 1 : in which directory, item will be uploaded, give permission to "apache" for that directory.
chown apache /destination-directory-path/
now, fire : ls -la
now, this destination directory will show you like this.
drwxr-xr-x 2 apache savan 4096 Jun 14 17:34 destination-dir
now, you can use your any php uploader code logic. I'll upload perfectly.
in short, you have give permissions to "apache" and it'll start working well.
If you have any further queries you can comment in post.
If you have configured as per any tutorials , then it'll perfectly work for your web development. But some things are still remaining.
In most of projects, we want at-least some small document or photo up-loader. So, by default, if you direct uses code of upload in php, it'll give error.
so, follow these steps for healing this problem.
step 1 : in which directory, item will be uploaded, give permission to "apache" for that directory.
chown apache /destination-directory-path/
now, fire : ls -la
now, this destination directory will show you like this.
drwxr-xr-x 2 apache savan 4096 Jun 14 17:34 destination-dir
now, you can use your any php uploader code logic. I'll upload perfectly.
in short, you have give permissions to "apache" and it'll start working well.
If you have any further queries you can comment in post.