Permission to directory in /var/www

Amrit Pal Pathak amritpalpathak1 at gmail.com
Thu Aug 4 12:08:26 UTC 2011


On Thu, Aug 4, 2011 at 6:42 AM, Md Ashickur Rahman Noor <
ashickur.noor at 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 = 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.
>                   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_password);
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_password);


-- 
 Thank you !!

 Regards
 Amrit Pal

 amritpalpathak.blogspot.com <http://amritpalpathak.blogspot.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110804/b416352a/attachment.html>


More information about the ubuntu-users mailing list