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 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。