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.
ForbiddenYou 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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 09:56 AM
Md Ashickur Rahman Noor
Permission to directory in /var/www
Change the folder permission to 777 by using chmod.----------------------------------------------------------
Dedicated Linux Forum in Bangladesh
Follow Me Twiter
Thank you
Md Ashickur Rahman
On Thu, Aug 4, 2011 at 3:51 PM, Amrit Pal Pathak <amritpalpathak1@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.
ForbiddenYou 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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 10:04 AM
Amrit Pal Pathak
Permission to directory in /var/www
On Thu, Aug 4, 2011 at 5:56 AM, Md Ashickur Rahman Noor <ashickur.noor@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
Follow Me Twiter
Thank you
Md Ashickur Rahman
On Thu, Aug 4, 2011 at 3:51 PM, Amrit Pal Pathak <amritpalpathak1@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.
ForbiddenYou 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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
*Thank you !!
*
*Regards
*Amrit Pal
*amritpalpathak.blogspot.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 10:42 AM
Md Ashickur Rahman Noor
Permission to directory in /var/www
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 = Onwhich 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
Follow Me Twiter
Thank you
Md Ashickur Rahman
On Thu, Aug 4, 2011 at 4:04 PM, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
On Thu, Aug 4, 2011 at 5:56 AM, Md Ashickur Rahman Noor <ashickur.noor@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
Follow Me Twiter
Thank you
Md Ashickur Rahman
On Thu, Aug 4, 2011 at 3:51 PM, Amrit Pal Pathak <amritpalpathak1@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.
ForbiddenYou 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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
*Thank you !!
*
*Regards
*Amrit Pal
*amritpalpathak.blogspot.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 12:08 PM
Amrit Pal Pathak
Permission to directory in /var/www
On Thu, Aug 4, 2011 at 6:42 AM, Md Ashickur Rahman Noor <ashickur.noor@gmail.com> wrote:
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 = Onwhich 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. * * * * * * * * * * * * * * * * * * * * * * * * * * yes it is showing the error as:
** *Fatal error: Call to undefined function mysql_connect() in /var/www/GNDEC-SMS-Service/functions.php on line 13
** Mysql is installed and database exist there.The *
** funtions.php file *looks like.*
**<?php
/************************************************** ************* *THE ADDRESS BOOK *: *version 1.04d** ************************************************** *****************
** *functions.php** *Defines functions to be used within other scripts.****************************************** **********************/session_start();include_once('config.php');
$conn = mysql_connect("localhost",$db_username,$db_passwor d);function chronometer($msg) {global $elapsed;global $CHRONO_STARTTIME; $now = microtime(TRUE);
if ($CHRONO_STARTTIME > 0){ $elapsed = "$msg: ".round($now * 1000 - $CHRONO_STARTTIME * 1000, 3)." milli seconds";
$CHRONO_STARTTIME = 0; return $elapsed; }else {
$CHRONO_STARTTIME = $now;* }*}**?>
*LIne no 13 says :*****mysql_connect("localhost",$db_username,$db_p assword);**--
*Thank you !!
*
*Regards
*Amrit Pal
*amritpalpathak.blogspot.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 12:17 PM
Colin Law
Permission to directory in /var/www
On 4 August 2011 13:08, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
> [...]
> ** *Fatal error: Call to undefined function mysql_connect() in
> /var/www/GNDEC-SMS-Service/functions.php on line 13
> ** Mysql is installed and database exist there.The
> ** funtions.php file *looks like.
How long did you spend with google before coming back to ask here?
I hope you are not just seeing an error and immediately asking for
more help. That way you will never learn how to sort your own
problems out.
I notice you did not even thank the previous poster for his suggestion
to show the errors, which has got you to the heart of the problem.
Colin
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 12:32 PM
Amrit Pal Pathak
Permission to directory in /var/www
On Thu, Aug 4, 2011 at 8:17 AM, Colin Law <clanlaw@googlemail.com> wrote:
On 4 August 2011 13:08, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
> [...]
> ** *Fatal error: Call to undefined function mysql_connect() in
> /var/www/GNDEC-SMS-Service/functions.php on line 13
> ** Mysql is installed and database exist there.The
> ** funtions.php file *looks like.
How long did you spend with google before coming back to ask here?
I hope you are not just seeing an error and immediately asking for
more help. *That way you will never learn how to sort your own
problems out.
** *I couldn't understand it thats why i ask immediately.*
I notice you did not even thank the previous poster for his suggestion
to show the errors, ** * *I did.It was a typo error.*
** Thank you !!
*
*Regards
*Amrit Pal
*amritpalpathak.blogspot.com
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 12:33 PM
Amrit Pal Pathak
Permission to directory in /var/www
On Thu, Aug 4, 2011 at 8:32 AM, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
On Thu, Aug 4, 2011 at 8:17 AM, Colin Law <clanlaw@googlemail.com> wrote:
On 4 August 2011 13:08, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
> [...]
> ** *Fatal error: Call to undefined function mysql_connect() in
> /var/www/GNDEC-SMS-Service/functions.php on line 13
> ** Mysql is installed and database exist there.The
> ** funtions.php file *looks like.
How long did you spend with google before coming back to ask here?
I hope you are not just seeing an error and immediately asking for
more help. *That way you will never learn how to sort your own
problems out.
** *I couldn't understand it thats why i ask immediately.*
I notice you did not even thank the previous poster for his suggestion
to show the errors, ** * *I did.It was a typo error. *** * * *Sorry again for typo:
** * Thank you*** * amritpalpathak.blogspot.com*
*
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 12:37 PM
Colin Law
Permission to directory in /var/www
On 4 August 2011 13:32, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
>
>
> On Thu, Aug 4, 2011 at 8:17 AM, Colin Law <clanlaw@googlemail.com> wrote:
>>
>> On 4 August 2011 13:08, Amrit Pal Pathak <amritpalpathak1@gmail.com>
>> wrote:
>> > [...]
>> > ** *Fatal error: Call to undefined function mysql_connect() in
>> > /var/www/GNDEC-SMS-Service/functions.php on line 13
>> > ** Mysql is installed and database exist there.The
>> > ** funtions.php file *looks like.
>>
>> How long did you spend with google before coming back to ask here?
>>
>> I hope you are not just seeing an error and immediately asking for
>> more help. *That way you will never learn how to sort your own
>> problems out.
>
> ** *I couldn't understand it thats why i ask immediately.
So what have you learnt by googling the error message now? A good
search might be
Call to undefined function mysql_connect ubuntu
You may still not be able to solve it yourself but you will be able to
say what you have tried and what happened.
I don't know the answer myself by the way, but if I had the problem
then google would be my first approach and only if I still could not
sort it would I ask people to spend their time trying to help me.
Colin
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
08-04-2011, 01:20 PM
Jordon Bedwell
Permission to directory in /var/www
On 04/08/11 07:37, Colin Law wrote:
> On 4 August 2011 13:32, Amrit Pal Pathak <amritpalpathak1@gmail.com> wrote:
>> On Thu, Aug 4, 2011 at 8:17 AM, Colin Law <clanlaw@googlemail.com> wrote:
>>> On 4 August 2011 13:08, Amrit Pal Pathak <amritpalpathak1@gmail.com>
>>> wrote:
>>> > Fatal error: Call to undefined function mysql_connect() in
>>> > /var/www/GNDEC-SMS-Service/functions.php on line 13
>>> > Mysql is installed and database exist there.The
>>> > funtions.php file looks like.
>>> How long did you spend with google before coming back to ask here?
>>> I hope you are not just seeing an error and immediately asking for
>>> more help. That way you will never learn how to sort your own
>>> problems out.
>> I couldn't understand it thats why i ask immediately.
> So what have you learnt by googling the error message now? A good
> search might be call to undefined function mysql_connect ubuntu
>
> You may still not be able to solve it yourself but you will be able to
> say what you have tried and what happened.
> I don't know the answer myself by the way, but if I had the problem
> then google would be my first approach and only if I still could not
> sort it would I ask people to spend their time trying to help me.
The better Google query would be: "php ubuntu undefined mysql_connect"
Anyways to answer:
apt-get install php5-mysql
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users