i place apache document root inside partition of ubuntu hard drive, keep getting forbidden message, when place home directory woking find, how be? group or owner affected ? here mysite.conf , apache2.conf when place document root in home folder (working) #site-available/mysite.conf documentroot /home/jono/www #/etc/apache2/apache2.conf <directory /home/jono/www/> options indexes followsymlinks allowoverride none require granted </directory> bu when change document root partition keep getting forbidden messasge #site-available/mysite.conf documentroot /media/jono/website_data/www #/etc/apache2/apache2.conf <directory /media/jono/website_data/www/> options indexes followsymlinks allowoverride none require granted </directory> is owner/group access affected ? or there problem ? at last it's working, have grant access www:data accesing whole directory @mark-b, using chown -r www-data:www-data whole directory is...
i want write stored procedure find out joining date of teachers , if monday should display monday else should display “weekday” the tbl_teacher table ; vchr_teacher_name dat_teacher_doj teena 1982-01-10 lawrence 1979-09-01 mathew 1981-10-13 job 1980-11-12 and need create stored procedure " call check_date(1982-01-10)" results as: day ---------- weekday ---------- i tried : delimiter // create procedure check_date (in dat date,out day varchar(10)) begin select dayname( dat ) day tbl_teachers; end// delimiter ; it's show error as #1172 - result consisted of more 1 row how , find day monday or weekday. i think better served function : drop function if exists `check_date` // create function `check_date` (dat date) returns varchar(10) begin return if(dayname(dat) = 'monday' , 'monday', 'weekday...
Comments
Post a Comment