Debian8 fresh install Error Class Userman not found

I loaded using http://wiki.freepbx.org/display/FOP/Installing+FreePBX+13+on+Debian+8.1
everything was fine only issue was when I went to install freepbx

[email protected]:/usr/src/freepbx# ./install -n Assuming you are Database Root Checking if SELinux is enabled...Its not (good)! No /etc/asterisk/asterisk.conf file detected. Installing...Writing /etc/asterisk/asterisk.conf...Done Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Done Preliminary checks done. Starting FreePBX Installation Checking if this is a new install...Yes (No /etc/amportal.conf file detected) Database Root installation checking credentials and permissions..Error! Invalid Database Permissions. The error was: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) [email protected]:/usr/src/freepbx#
i noted that I was never asked to create a database so i went ahead and did this
` mysqladmin -uroot -pPASS4mysql create asterisk
mysqladmin -uroot -pPASS4mysql create asteriskcdrdb

mysql -uroot -pPASS4mysql -e "GRANT ALL PRIVILEGES ON asterisk.* TO [email protected] IDENTIFIED BY ‘PASS’"
mysql -uroot -pPASS4mysql -e “GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO [email protected] IDENTIFIED BY ‘PASS’” `

./install finnaly ran proper but now when I go to the web address I get this big Whoops! There was a error in the title

`
/­var/­www/­html/­admin/­modules/­userman/­Userman.class.php991

Whoops \ Exception \ ErrorException (E_ERROR)

Class ‘FreePBX\modules\Userman\Auth\freepbx’ not found
/var/www/html/admin/modules/userman/Userman.class.php

	 * @param  string $auth The authentication engine name, will default to freepbx
	 */
	private function switchAuth($auth = 'freepbx') {
		$this->getAuths();
		if(!empty($auth)) {
			$class = 'FreePBX\modules\Userman\Auth\\'.$auth;
			try {
				$this->auth = new $class($this, $this->FreePBX);
			} catch (\Exception $e) {
				//there was an error. Report it but set everything back

Server/Request Data
HTACCESS on
HTTP_HOST x.x.x.x
HTTP_USER_AGENT Mozilla/5.0 () Gecko/20100101 Firefox/43.0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_CONNECTION keep-alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE Apache/2.4.10 (Debian) Server at x.x.x.x Port 80
SERVER_SOFTWARE Apache/2.4.10 (Debian)
SERVER_NAME x.x.x.x.x
SERVER_ADDR x.x.x.x.x
SERVER_PORT 80
REMOTE_ADDR x.x.x.x.x
DOCUMENT_ROOT /var/www/html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /var/www/html/admin/config.php
REMOTE_PORT 47601
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /admin/config.php
SCRIPT_NAME /admin/config.php
PHP_SELF /admin/config.php
REQUEST_TIME_FLOAT 1453867734.041
REQUEST_TIME 1453867734
GET Data
empty
POST Data
empty
Files
empty
Cookies
lang en_US
Session
empty
Environment Variables
empty
Registered Handlers

`
What does the " -n " for the install do?
I have tried to search for this getting alot not directly related.
i need a hint to get this running . like I said everything went smooth in the install no missing or dependencies all loaded good. i can get you a list or what ever info you need i want this to run. i want to run the latest on my Debian.

note I tried

fwconsole ma install userman Generating CSS...Done Module userman successfully installed Updating Hooks...Done

i am lost here is my var/log/apache2/error log

` [Tue Jan 26 23:00:49.863929 2016] [mpm_prefork:notice] [pid 533] AH00163: Apache/2.4.10 (Debian) configured – resuming normal operations
[Tue Jan 26 23:00:49.985736 2016] [core:notice] [pid 533] AH00094: Command line: ‘/usr/sbin/apache2’
[Tue Jan 26 23:08:53.932646 2016] [access_compat:error] [pid 870] [client :47601] AH01797: client denied by server configuration: /var/www/html/admin/index.html
[Tue Jan 26 23:08:53.932702 2016] [access_compat:error] [pid 870] [client :47601] AH01797: client denied by server configuration: /var/www/html/admin/index.cgi
[Tue Jan 26 23:08:53.932732 2016] [access_compat:error] [pid 870] [client :47601] AH01797: client denied by server configuration: /var/www/html/admin/index.pl
[Tue Jan 26 23:08:54.187962 2016] [:error] [pid 870] [client :47601] PHP Fatal error: Class ‘FreePBX\modules\Userman\Auth\freepbx’ not found in /var/www/html/admin/modules/userman/Userman.class.php on line 991

`
Note I removed my ip

My guess is that you are not running apache as asterisk, I think that’s documented in in the link you posted.

Personally I do it in /etc/default/apache2 though.

I am running apache as asterisk i followed the wiki but also since I have installed asterisk (older versions many times i added in a few things of my own like
usermod -a -G www-data asterisk
usermod -a -G asterisk www-data
just to ensure everything has the proper rights

# ps -aux|grep asterisk avahi 461 0.0 0.1 32224 2884 ? Ss Jan26 0:00 avahi-daemon: running [asteriskdebian.local] asterisk 869 0.0 0.4 314112 8680 ? S Jan26 0:00 /usr/sbin/apache2 -k start asterisk 870 0.0 1.0 318140 22148 ? S Jan26 0:00 /usr/sbin/apache2 -k start asterisk 872 0.0 0.4 314112 8680 ? S Jan26 0:00 /usr/sbin/apache2 -k start asterisk 873 0.0 0.4 314112 8680 ? S Jan26 0:00 /usr/sbin/apache2 -k start asterisk 874 0.0 0.4 314112 8680 ? S Jan26 0:00 /usr/sbin/apache2 -k start root 1452 0.0 0.0 4336 120 ? S Jan26 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk asterisk 1456 0.7 3.0 1478388 63348 ? Sl Jan26 0:28 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c asterisk 1522 0.0 0.4 314112 8680 ? S Jan26 0:00 /usr/sbin/apache2 -k start root 1616 0.0 0.1 12732 2096 pts/0 S+ 00:14 0:00 grep asterisk

even have in /etc/apache2/apache2.conf
`
User asterisk
Group asterisk

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

`

Just pointing out the obvious here. It never asked you because it assumed you were Root and it didn’t have permissions to BE root.

Andrew Nagy, I missed that… so I reran it… maybe I need to delete some things and then run it…

Should I be dumping the databases I made and deleting some files in etc ? You will note at bottom I still get error. but like I am guessing its probably because its not a clean install

` [email protected]:/usr/src/freepbx# ./install
Database engine [mysql]:
Database name [asterisk]:
CDR Database name [asteriskcdrdb]:
Database username [root]:
Database password: ***********************
File owner user [asterisk]:
File owner group [asterisk]:
Filesystem location from which FreePBX files will be served [/var/www/html]:
Filesystem location from which Asterisk configuration files will be served [/etc/asterisk]:
Filesystem location for Asterisk modules [/usr/lib/asterisk/modules]:
Filesystem location for Asterisk lib files [/var/lib/asterisk]:
Filesystem location for Asterisk agi files [/var/lib/asterisk/agi-bin]:
Location of the Asterisk spool directory [/var/spool/asterisk]:
Location of the Asterisk run directory [/var/run/asterisk]:
Location of the Asterisk log files [/var/log/asterisk]:
Location of the FreePBX command line scripts [/var/lib/asterisk/bin]:
Location of the FreePBX (root) command line scripts [/usr/sbin]:
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Done
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…No (/etc/amportal.conf file detected)
Initializing FreePBX Settings
Finished initalizing settings
Copying files (this may take a bit)…
0/6165 [>---------------------------] 0%/etc/asterisk/manager.conf has been changed from the original version.
Overwrite:
[x] Exit
[y] Yes
[n] No
[d] Diff

y
/etc/asterisk/cdr_adaptive_odbc.conf has been changed from the original version.
Overwrite:
[x] Exit
[y] Yes
[n] No
[d] Diff
y
6165/6165 [============================] 100%
Done
Finishing up directory processes…Done!
Creating missing #include files…Done
Running variable replacement…Done
Setting up Asterisk Manager Connection…Done
Running through upgrades…
Checking for upgrades…
No further upgrades necessary
Finished upgrades
Setting FreePBX version to 13.0.53…Done
Writing out /etc/amportal.conf…Done
Setting Permissions…
58/58 [============================] 100%
Finished setting permissions
Installing all modules…checking for sipsettings table…already exists
Generating CSS…Done
Module sipsettings successfully installed
Updating Hooks…Done
Generating CSS…Done
Module music successfully installed
Updating Hooks…Done
Generating CSS…Done
Module callrecording successfully installed
Updating Hooks…Done
Creating cel if needed…OK
checking for extra field…already exists
checking for userfield field…already deleted
checking for context index…already indexed
Generating CSS…Done
Module cel successfully installed
Updating Hooks…Done
Generating CSS…Done
Module dashboard successfully installed
Updating Hooks…Done
Generating CSS…Done
Module featurecodeadmin successfully installed
Updating Hooks…Done
Generating CSS…Done
Module infoservices successfully installed
Updating Hooks…Done
Generating CSS…Done
Module userman successfully installed
Updating Hooks…Done
Checking if field did is present in cdr table…
did field already present.
Checking if field recordingfile is present in cdr table…
recordingfile field already present.
Checking if field cnum is present in cdr table…
cnum field already present.
Checking if field cnam is present in cdr table…
cnam field already present.
Checking if field outbound_cnum is present in cdr table…
outbound_cnum field already present.
Checking if field outbound_cnam is present in cdr table…
outbound_cnam field already present.
Checking if field dst_cnam is present in cdr table…
dst_cnam field already present.
Generating CSS…Done
Module cdr successfully installed
Updating Hooks…Done
Checking if directdids need migrating…already done
updating zap callgroup, pickupgroup…not needed
checking for delay_answer field …already exists
checking for reversal field …already exists
checking for pricid field …already exists
Checking if trunk table migration required…not needed
Checking if privacy manager options exists…already exists
Checking for noanswer_cid field…already exists
Checking for busy_cid field…already exists
Checking for chanunavail_cid field…already exists
Checking for noanswer_dest field…already exists
Checking for busy_dest field…already exists
Checking for chanunavail_dest field…already exists
Unable to add index to extensions field in users
Checking for General Setting migrations…not needed
Deleting unused globals…done
Converting IAX notransfer to transfer if needed…updated 0000 records
deleting obsoleted record_in and record_out entries…ok
checking for dest field in outbound_routes…already exists
checking for continue field in trunks…already exists
upgrading any zap trunks to dahdi if found…ok
checking possibly for invalid emergency caller id fieldsNo invalid callerid entries foundGenerating CSS…Done
Module core successfully installed
Updating Hooks…Done
Generating CSS…Done
Module logfiles successfully installed
Updating Hooks…Done
Checking for General Setting migrations…not needed
checking if Voicemail Admin (vmailadmin) is installed…not installed, ok
Generating CSS…Done
Module voicemail successfully installed
Updating Hooks…Done
Refreshing all UCP Assets, this could take a while…
Generating Module Scripts…Done
Generating Module CSS…Done
Generating Main Scripts…Done
Generating Main CSS…Done
Done!
Generating CSS…Done
Module ucp successfully installed
Updating Hooks…Done
Generating CSS…Done
Module customappsreg successfully installed
Updating Hooks…Done
Done installing modules
Installing framework…
No directory /var/www/html/admin/modules/framework/amp_conf/htdocs, install script not needed
Generating CSS…Done
Module framework successfully installed
Updating Hooks…Done
Done
Generating default configurations…
PHP Fatal error: Class ‘FreePBX\modules\Userman\Auth\freepbx’ not found in /var/www/html/admin/modules/userman/Userman.class.php on line 991
Whoops\Exception\ErrorException: Class ‘FreePBX\modules\Userman\Auth\freepbx’ not found in file /var/www/html/admin/modules/userman/Userman.class.php on line 991
Stack trace:

  1. () /var/www/html/admin/modules/userman/Userman.class.php:991
    Finished generating default configurations
    Trusting FreePBX…Trusted
    Setting Permissions…
    58/58 [============================] 100%
    Finished setting permissions
    You have successfully installed FreePBX
    `

What version of PHP is this using?

/usr/src/freepbx# php -i|head
phpinfo()
PHP Version => 5.6.17-0+deb8u1

System => Linux asteriskdebian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64
Build Date => Jan 13 2016 09:09:23

I been trying to find some sort of link since you mentioned it on version of php i can see in the install.php file a refrence to php version . maybe I should go to a lower version of php ?

/usr/src/freepbx# cat install.php |grep PHP if (version_compare(PHP_VERSION, '5.3.3', '<')) { out(sprintf(_("FreePBX Requires PHP Version 5.3.3 or Higher, you have: %s"),PHP_VERSION));

I tried to downgrade php had issues. http://superuser.com/questions/913792/php-5-3-10-on-debian-jessie after searching a bit online I am unable to find anyone who is able to get past dependencies problems with libapache2-mod-php5.

So i re installed back to the 5.6 php . At this point I am going to try freepbx12

Ok the freepbx 12 worked with version 11 asterisk

I have it functional

here is what I deleted and dropped and ran for reference if you tried on jessie 8 to run freepbx13 and latest asterisk. hopefully help someone.

i will try again in a few months

So i re-got the dependencies 9since there is a few differences
dropped the databases
removed a few directories (will cause issues if you do not!)
downloaded the latest freepbx12 and asterisk 11

apt-get install -y build-essential linux-headers-uname -r` openssh-server apache2 mysql-server
mysql-client bison flex php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox
libncurses5-dev libssl-dev libmysqlclient-dev mpg123 libxml2-dev libnewt-dev sqlite3
libsqlite3-dev pkg-config automake libtool autoconf git subversion unixodbc-dev uuid uuid-dev
libasound2-dev libogg-dev libvorbis-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp0-dev
libspandsp-dev libmyodbc

wget http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.6-current.tar.gz
tar xvfz certified-asterisk-11.6-current.tar.gz

wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-12.0-latest.tgz
tar xvfz freepbx-12.0-latest.tgz

mysql -uroot -ppass -e "drop database asteriskcdrdb;"
mysql -uroot -ppass -e "drop database asterisk;"
rm -rf /var/www/html
rm -rf /etc/asterisk
rm -rf /etc/amportal.conf
rm -rf /etc/freepbx.conf
rm -rf /usr/lib/asterisk/modules
rm -rf /var/lib/asterisk
cd /usr/src
cd dahdi-linux-complete-*
make all && make install && make config

cd /usr/src
cd pjproject-2.4
CFLAGS=’-DPJ_HAS_IPV6=1’ ./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr
make dep && make && make install

cd /usr/src
cd jansson-*
autoreconf -i
./configure && make && make install

cd /usr/src
cd /usr/src/certified-asterisk-11.6-cert11*
./configure
contrib/scripts/get_mp3_source.sh
make menuselect

make && make install && make config
ldconfig
mysqladmin -uroot -ppass create asterisk
mysqladmin -uroot -ppass create asteriskcdrdb
mysql -uroot -ppass -e "GRANT ALL PRIVILEGES ON asterisk.* TO [email protected] IDENTIFIED BY ‘pass’"
mysql -uroot -ppass -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO [email protected] IDENTIFIED BY ‘pass’"
mysql -uroot -ppass -e “flush privileges;”

cd /usr/src/freepbx
./start_asterisk start
./install_amp --installdb --username=asteriskuser --password=pass`

lastly you need to

amportal chown amportal a reload amportal a ma refreshsignatures amportal chown

they mention to do a amportal a ma installall but i always get errors when I do this so i avoid it and loginto the web interface and manually load the modules I want and I do this and process them and install some more if they depend on something and keep doing this then when I have the basics or what is nessary then i hit the apply button… I will post a link on debian jessie

You can try but unless someone can replicate it you’re going to have problems again. It would be nice if next time you can do some troubleshooting to help us figure it out.

Does freepbx13 run on debian 8?

It’s system agnostic.

does freepbx support freepbx 5.6.17 ?