Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Phonebook failed: Permission denied

Phonebook failed: Permission denied

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 372 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    crossit
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      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,

      1 Reply Last reply
      0
      • C
        C
        crossit
        wrote on last edited by
        #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

        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          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,

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups