dongqun1656 2012-09-20 19:29
浏览 90
已采纳

phpMyAdmin警告(设置)

I have problem setting up phpmyadmin on my mac. I am quite new here and I will be greatful if someone could give me a hand.

http://www.coolestguyplanettech.com/installing-phpmyadmin-on-mac-osx-10-7-lion/

I have followed tutorial from that link and everything went fine till configuration.

In Firefox I cannot open phpmyadmin setup link, it gives me big error as from image...

While in Chrome and Safari if I try to login a few times with unexisting username and password, I can access setup. But then I get different kind of errors:

Warning: Unknown: open(/var/folders/lt/8_h20skn5654p70bncx05d3h0000gn/T/sess_07ee21d2fa014a365d748382eaf8d2d6c6862893, O_RDWR) 
    failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that 
    the current setting of session.save_path is correct () in Unknown on line 0

In tutorial it says that I have to make "New server". When I click there and type my password (same as one for SQL). It cannot save the server. Just redirect me back to Basic settings from authentication.

Please help I am confused...

ScreenShot of Error: ScreenShot Error #1

Error that I have mentioned that appear in chrome is actually when I try to login a few times with ofc unexisting username and password. Then I get access to setup with other two errors.

no desc

Other screenshots: no desc

no desc

P.S. If you need logs I will gladly provide them, if you tell me how! Cheers.

  • 写回答

2条回答 默认 最新

  • dongxibeng5324 2012-09-22 22:19
    关注

    Its basically saying PHP is not allowed to write to the directory that sessions are saved to.

    You could do one of a few things:

    Change the session save path in your php.ini

    session.save_path = /tmp
    

    If this is just a development machine you set it some where else like

    session.save_path = /users/php/sessions
    

    And then chmod 777 that directory.

    See this page for more information: http://php.net/manual/en/session.configuration.php#ini.session.save-path

    Otherwise you could set a new session.save_handler. This is a little bit harder so I probably wouldn't go down that road.

    These page will give you information on that though:

    And finally you could just allow the PHP user to access the path its trying to.

    I assume you would need to do something like:

    sudo mkdir -p /var/folders/lt/8_h20skn5654p70bncx05d3h0000gn/T/
    sudo chmod 777 /var/folders/lt/8_h20skn5654p70bncx05d3h0000gn/T/
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)