Q: My question about loading fckeditor from a smarty template in linux is that I used the linux release Tun to report a ForbiddenYoudon 'thavepermissiontoaccess/sportsLeague/admin/fck/FCKeditor/editor/fckeded question about loading fckeditor from a smarty template in linux
I am using the Ubuntu Tun version of linux.
After loading, I reported
Forbidden
You don't have permission to access/sportsLeague/admin/fck/FCKeditor/editor/fckeditor.html on this server.
Apache/2.2.17 (Ubuntu) Server at localhost Port 80
Such an error? I am puzzled. Can someone help me solve this problem? Thank you.
Php code is
Require ("fck/FCKeditor/fckeditor. php ");
$ FCK = new FCKeditor ("content ");
$ FCK-& gt; Width = "540 ";
$ FCK-& gt; Heiht = "350 ";
$ FCK-> ToolbarSet = "Default ";
$ FCK-> BasePath = "fck/FCKeditor /";
$ Editor = $ FCK-> CreateHtml ();
$ Smarty-> assign ("editor", $ editor );
$ Smarty-> display ("newsAdminAdd.html ");
The html code is
News title |
|
News content |
{$ Editor} |
------ Solution --------------------
Have you encountered the 403 error when accessing other files?
If all of them are used, apache configuration is incorrect.
If others are normal, try to modify the file permission to everyone's readable.
Chmod a + r
Document_root Directory/SportsLeague/admin/fck/FCKeditor/editor/fckeditor.html