Phonebook failed: Permission denied

  1. 12 years ago

    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.

  2. admin

    6 Feb 2012 Administrator

    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,

  3. 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

  4. admin

    13 Feb 2012 Administrator

    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,

or Sign Up to reply!