proftpd 500 OOPS: cannot change directory:/home/ftp
- font size decrease font size increase font size
但客户端访问提示如下错误:
500 OOPS: cannot change directory:/home/ftp
原因是他的CentOS系统安装了SELinux,因为默认下是没有开启FTP的支持,所以访问时都被阻止了。
//查看SELinux设置
# getsebool -a|grep ftp
ftp_home_dir-->off
//使用setsebool命令开启
# setsebool ftp_home_dir 1
由于操作系统一旦重启后,这种设置需要重新设置,这里使用-P参数实现.
//setsebool使用-P参数,无需每次开机都输入这个命令
# setsebool -P ftp_home_dir 1
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0013 | 415432 | {main}( ) | .../index.php:0 |
2 | 0.1236 | 4720592 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1236 | 4720592 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3569 | 12448840 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3585 | 12473248 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3599 | 12528576 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3603 | 12557400 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3723 | 12992808 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3723 | 12992808 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3830 | 13718008 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3830 | 13718008 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3869 | 14114376 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3890 | 14134744 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4806 | 17163136 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4806 | 17163136 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4856 | 17343336 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in CentOS 6
- Read 1676 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0013 | 415432 | {main}( ) | .../index.php:0 |
2 | 0.1236 | 4720592 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1236 | 4720592 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3569 | 12448840 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3585 | 12473248 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3599 | 12528576 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3603 | 12557400 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3723 | 12992808 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3723 | 12992808 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3830 | 13718008 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3830 | 13718008 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3869 | 14114376 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3890 | 14134744 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4806 | 17163136 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4806 | 17163136 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4856 | 17343336 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |