Phonebook failed: Permission denied

Hi,

Just installed the latest version on PIAF purple. I'm getting the dreaded permission denied error. Yes I have the user configured in mySQL and I can connect as that user via the SQL command line. The user and pass matches what is configured in the /var/www/html/fop2/config.php file. What is the proper way to debug this error? The latest version mentioned setting all of this up for you. Is this true?

A.J.

Comments

  • Yes, it is true, you do not need to touch the config.php, it will take the connection parameters from freepbx configuration files and create the visual phonebook table in the asterisk database by default.

    What is the EXACT error you get when you load the phonebook? Are your php sessions working? check your apache error log file.

    Best regards,
  • Phonebook Error:
    Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_5p1la2a081ptufj2mop4hivmo4, O_RDWR) failed: Permission denied (13) in /var/www/html/fop2/config.php on line 42
    You do not have permissions to access this resource.

    Apache Error:
    [Mon Feb 13 08:22:33 2012] [error] [client 10.100.3.50] File does not exist: /var/www/html/fop2/fop2-variablesGENERAL.txt, referer: http://10.100.5.200/fop2/
    [Mon Feb 13 08:22:36 2012] [error] [client 10.100.5.200] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
  • You php sessions are broken. It seems you updated apache or php, you most probably will have to change the ownership of /var/lib/php/session to asterisk:asterisk. This error is not related to fop2, you are seeing it now because of fop2, but you had it before.

    Best regards,
Sign In or Register to comment.