Friday, June 15, 2012

PHP Uploader in Fedora server

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.

Setup Server on Fedora 16

Hello, I've used Fedora 14 for all time and for my project works and developments. I think it was a very stable version of Fedora family. Then I moved to Fedora 16. It's gnome 3 environment was great. I became fan of it. and I installed it in my personal laptop also. But when I was starting server httpd it was not starting properly. and was throwing failure for starting server.

So, in this post I'll include that, how I set up server on my laptop.

step 1 :  Remove httpd server inbuilt with fedora 16.  [if you've installed from your Fedora DVD. ]
                              yum remove httpd


this will remove httpd as well as php from your system.

step 2 : Again install httpd server.
                             yum install httpd
                              yum install php
this will install properly configured apache httpd server.


step 3 :  now start httpd server.
                             service httpd start




Now, it'll work properly and goto your browser.