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条)

报告相同问题?

悬赏问题

  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)