aallard
(Gicho)
January 25, 2015, 1:07am
1
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.
dicko
(dicko)
January 25, 2015, 1:16am
2
You might need to
pear channel-update pear.php.net ;pear install db
dicko
(dicko)
January 25, 2015, 2:58am
4
Then look at the logs in /var/log/apache2/ directory
aallard
(Gicho)
January 25, 2015, 3:12am
5
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”
dicko
(dicko)
January 25, 2015, 3:17am
6
whois is running apache2 ?
ps aux |grep apache2
aallard
(Gicho)
January 25, 2015, 3:29am
7
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
dicko
(dicko)
January 25, 2015, 3:31am
8
Then I suggest you read your installation manual again
/etc/apaches2/envvars
aallard
(Gicho)
January 25, 2015, 3:38am
9
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!
aallard
(Gicho)
January 25, 2015, 3:41am
10
Now I have one other issue…
When I click on User Control Panel I get a 404 error (/ucp not found)
dicko
(dicko)
January 25, 2015, 3:43am
11
There is a less clumsy solution, from /etc/apache2/apache2.conf
These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
but that work-around you used should work for now.
aallard
(Gicho)
January 25, 2015, 3:47am
12
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?
dicko
(dicko)
January 25, 2015, 3:50am
13
Please don’t hijack your own thread.