Voicemail Portal Issue (Resolved)

We are running the latest version of FreePBX 2.7.0.2 on a CentOS 1.5.4 server.

When accessing the voicemail portal at http://Our.Free.PBX.IP/recordings it lets us log in and view the main page where we see all the messages. As soon as we select any of the link options on the left column (such as Settings or any other ones) it takes us right back to voicemail portal login page. After we reenter our credentials, we are back to where we started at the main page.

We looked around in the forum and found some possible fix which did not work for us. As instructed, we added the following code ( used < > instead of [ ] ) to httpd.conf file but we are still getting kicked out, asking for Login and Password, every time we select anything from the voicemail main page:

[Directory “/var/www/html/admin/images”]
AllowOverride
Order allow,deny
Allow from all
[/Directory]

We noticed our frog image is located at http://Our.Free.PBX.IP/recordings/theme/logo.png so we even tried replacing [Directory “/var/www/html/admin/images”] with [Directory “/var/www/html/recordings/theme”] but still no luck.

Please assist. Thanks!

Anyone please?

See Thread “Password Required where none should be”

BF

We did infact follow the instructions on the “Password Required where none should be” thread but that did not fix the issue. We noticed our frog image is located at http://Our.Free.PBX.IP/recordings/theme/logo.png so we even tried replacing [Directory “/var/www/html/admin/images”] with [Directory “/var/www/html/recordings/theme”] but still no luck.

Clear the cookie for http://Our.Free.PBX.IP in your browser.

Yes, we have cleared cookies, as well as try another computer. No success.

Yes, we have cleared cookies, as well as try another computer. No success.

Did you install this setup by hand or did you use a distro?

Check your permission on /var/lib/php/session, it should be owned by asterisk and have a permission of 770

/var/lib/php/session is currently owned by group apache.

How do we go about changing the owner to asterisk and permission to 770 please?

You did not answer my first question, have you installed this setup by hand or did you use a distro?

The setup was downloaded from Asterisk.org. Thanks!

Did you download the AsteriskNOW iso and installed from that?

If so, they have decided to use apache as the user to run httpd and if that is so the setting for session is correct. However, please check that there is files in the session directory and that those files are owned by apache.apache.

Read about changing the user to asterisk instead of apache here:

OK, we finally resolved this issue. We did the following:

  1. Added this to httpd.conf (replace [ ] with < >):
    [Directory “/var/www/html”]
    AllowOverride
    Order allow,deny
    Allow from all
    [/Directory]

  2. Changed the following in httpd.conf:
    User asterisk
    Group asterisk

  3. Changed User and Group of /var/lib/php/session and
    User and Group of every file in /session to “asterisk”

Thanks to Mikael for his generous suggestions.