I'm replying this message just to have a central location for inoERP on FreeBSD
===================================================
I would like to share my experience of install inoERP 0.6.1 on FreeBSD 11 so that hopefully you won't run into the troubles that I had. Be aware that the following is the minimum that I had to do to get it going.
If you ask me if it is worth all the efforts, my answer is No.
I. Set up FAMP (FreeBSD, Apache, mysql and php) stack
1. update currently installed packages
# pkg upgrade
2. Install apache24: # pkg install apache24
enable apache as a service: # sysrc apache24_enable=yes
start apache service: # service apache24 start
After this step, you can test apache server by typing the URL in the web browswer and see the default web page.
3. Install mysql server: # pkg install mysql56-server
copy my.cnf file: under /usr/local/etc/mysql, copy my.cnf.sample to my.cnf
enable mysql as a service: # sysrc mysql_enable=yes
start mysql service: # service mysql-server start
run security script: # mysql_secure_installation
root password: ****
remove anonymous users: yes
disallow root login remotely: yes
Remove test database and access to it: yes
Reload privilege tables: yes"
4. Install PHP: # pkg install mod_php71 php71 php71-mysqli php71-pdo php71-pdo_mysql php71-gettext php71-session
Note: some of the above packages, although not mentioned in their guide, are required to run inoERP properly
copy the sample PHP configuration file into place: in /usr/local/etc, copy php.ini-production to php.ini
regenerate the system's cached information about your installed executable files: # rehash
5. Change apache configration: in /usr/local/etc/apache24/httpd.conf
Look for the following lines and make sure no # at the beginning of the lines.
LoadModule rewrite_module modules/mod_rewrite.so for clean URL
LoadModule php7_module libexec/apache24/libphp7.so
Add or change the following lines:
<IfModule dir_module>
DirectoryIndex index.php index.html"
"<FilesMatch ""\.php$"">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ""\.phps$"">
SetHandler application/x-httpd-php-source
</FilesMatch>"
restart apache service # service apache24 restart
create a file called phpinfo.php with the following line
<?php phpinfo(); ?>"
Type [URL]http://yourserver/phpinfo.php[/URL], you'll see all the php information. By now, the FAMP stack is completed.
II. Install inoERP
1. Download inoERP-0.6.1.tar.gz
extract: tar xf inoERP-0.6.1.tar.gz
You'll see a folder "inoerp"
move inoerp folder under www (this is where I put it. you can pick your own preferred location), so you have
/usr/local/www/inoerp
2. Change owner and group of inoerp folder. In /usr/local/www
# chown -R www:www inoerp
Change the permissions of several things: In /usr/local/www/inoerp
# chmod 777 .htaccess files install.php includes/basics/settings/dbsettings.php
3. Change apache configuration at /usr/local/etc/apache24/httpd.conf so that you'll have
DocumentRoot "/usr/local/www/inoerp"
<Directory "/usr/local/www/inoerp">
Restart apache service: service apache24 restart
4. Set up mysql database:
# mysql -u root -p
mysql> create database inodb;
mysql> grant all on inodb.* to 'inouser'@'localhost' identified by 'inopass';
mysql> flush privileges;
mysql> exit;"
5. In web browser, type the URL of your server to start the installation of inoERP
You'll see
a table of prerequistes (note: php71-session is not listed by required.)
After clicking continue, you need to input the information of the database such as dabase name,user and password.
After clicking continue, the installation starts at 0% and finishes at 100%
You'll see some warning after installation
Make sure that the write access from inlcudes directory, basics directory, .htaccess file and dbsettings are removed
Check/fix the above permissions
6. Type the URL of the server in web browswer, you'll see the inoERP web page.