Permission to directory in /var/www

Md Ashickur Rahman Noor ashickur.noor at gmail.com
Thu Aug 4 10:42:33 UTC 2011


Edit your /etc/php5/apache2/php.ini file in line number 531 make that line
like

> display_errors = On
>
which may be by default like

> display_errors = Off


and 542 number line

> display_startup_errors = On

which may be by default like

> display_startup_errors = Off


 then restart your apache server by

> /etc/init.d/apache2 restart
>

Now browse  localhost/directoryName

If there is any error, it will be shown.
----------------------------------------------------------
Dedicated Linux Forum in
Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
Thank you
Md Ashickur Rahman




On Thu, Aug 4, 2011 at 4:04 PM, Amrit Pal Pathak
<amritpalpathak1 at gmail.com>wrote:

>
>
> On Thu, Aug 4, 2011 at 5:56 AM, Md Ashickur Rahman Noor <
> ashickur.noor at gmail.com> wrote:
>
>> Change the folder permission to 777 by using chmod.
>>
>    I did.
>     sudo chmod 777 -R GNDEC-SMS-Service
>     Still it didn't work.Even it gave strange output.Now when i browse to
> /var/www/directory browse shows just a black page (having nothing on it)
> instead of the previous forbidden message.
>
>> ----------------------------------------------------------
>> Dedicated Linux Forum in Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
>> Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
>> Thank you
>> Md Ashickur Rahman
>>
>>
>>
>>
>> On Thu, Aug 4, 2011 at 3:51 PM, Amrit Pal Pathak <
>> amritpalpathak1 at gmail.com> wrote:
>>
>>> I have a fresh system i.e  newly installed ubuntu 10.04.Apache is
>>> installed using "sudo apt-get install apache2".I tested it by making a
>>> test.php file in /var/www and it is accessible from browser.Now i copied a
>>> directory to /var/www  but it is not being accessible from browser.It gives
>>> the following dreading message.
>>>
>>> Forbidden
>>>
>>> You don't have permission to access /GNDEC-SMS-Service/ on this server.
>>> ------------------------------
>>> Apache/2.2.14 (Ubuntu) Server at localhost Port 80
>>>
>>> I changed the permission of the directory to 755 but it didn't
>>> work.Similarly 775 still didnt work.I know its a permission issue.Can
>>> anybody please tell me which permission i should give to /var/www/directory
>>> so that i can access it .
>>>
>>> --
>>>  Thank you !!
>>>
>>>  Regards
>>>  Amrit Pal
>>>
>>>  amritpalpathak.blogspot.com <http://amritpalpathak.blogspot.com>
>>>
>>>
>>> --
>>> ubuntu-users mailing list
>>> ubuntu-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>
>>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>>
>
>
> --
>  Thank you !!
>
>  Regards
>  Amrit Pal
>
>  amritpalpathak.blogspot.com <http://amritpalpathak.blogspot.com>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110804/379d9cdd/attachment.html>


More information about the ubuntu-users mailing list