Q: How can I load fckeditor from a smarty template in linux?

Source: Internet
Author: User
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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.