Fresh Install, No Errors... Blank Config.php

I just finished a fresh install of FreePBX (12.0.3) on Ubuntu 14.04 (trusty). This is a new server, so I had to setup everything to do the build. Went step-by-step through the manual install instructions. Encountered no errors or issues. Final step was to “amportal restart” which it did, with no errors.

I then went to my browser and connected to the site url/admin, which redirects to config.php, and the page is blank. Any ideas? I found lots of issues like this on the web that were reported after upgrades, etc, but not on a new installation.

You might need to

pear channel-update;pear install db

did that… no change :frowning:

Then look at the logs in /var/log/apache2/ directory

In the error log, apache is failing with “permission denied” on /var/www/html/admin/config.php

…and the /var/www/html directory (and everything in and under it) is owned by “asterisk”

whois is running apache2 ?

ps aux |grep apache2

ps aux|grep apache2 returns

root 783
www-data 3722
www-data 3723
www-data 3724
www-data 3726
www-data 3727
root 18942
www-data 18946
www-data 18947
www-data 18948
www-data 18949
www-data 18950

Then I suggest you read your installation manual again :wink:


That fixed it. I must have fat fingered

sed -i ‘s/^(User|Group).*/\1 asterisk/’ /etc/apache2/apache2.conf

when I did the install the first time around.

Thanks for your help!

Now I have one other issue…

When I click on User Control Panel I get a 404 error (/ucp not found)

There is a less clumsy solution, from /etc/apache2/apache2.conf

These need to be set in /etc/apache2/envvars


but that work-around you used should work for now.

When I go into module admin, and set ucp to be installed, it says “Cannot find module”

What’s the proper way to fix this?

Please don’t hijack your own thread.