dpnhp20440 2012-04-12 22:32
浏览 22
已采纳

将SilverStripe安装迁移到新服务器后无法加载/管理

I have just moved a silverstripe install to a new joyent smartos server. Not being familiar with Linux, this was still relatively easy.

I am new to silverstripe as well, but the team here has developed on it for years.

I have the site up and running on the new server, but have not pointed the domain to it until we can thoroughly test it. So I am accessing it from it's ip address. The site displays fine and the sub pages work as well. When I navigate to the '/admin' page, I see a silverstripe page that states the page cannot be found (not an Apache 404). I copied over the .htaccess and the _config.php from the old server, so there should be no issues.

I have done a /dev/build with no errors and I can log in through the security page, but I just cannot get the /admin to come up. I am lost after spending the whole morning surfing google to find the answer. Any help would be greatly appreciated.

UPDATE:: I installed a fresh version of silverstripe into a subdirectory on the same server. Works perfectly, so that rules out any PHP issues.

I have also tried /index.php/admin with no luck.

Thanks,

Ben

  • 写回答

2条回答 默认 最新

  • duanheye7909 2012-08-09 17:16
    关注

    I was having this problem as well. None of the solutions I found online worked for me, but I managed to figure it out.

    I had apache running as a non-standard user, and the problem turned out to be that the webserver was unable to save session data for the logins.

    The solution in my case was to chown root.myuser /var/lib/php/session. Once done, the admin page loaded fine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 MATLAB联合adams仿真卡死如何解决(代码模型无问题)
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改