对付为偶尔收发一下传真而配备一台传真机,看来也没有什么必要。

通过搭建一套电子传真系统,即可办理干系问题,并且能够实现网络共享、以及多个线路收发。

HylaFAX是什么?

phppearmailUbuntu下应用HylaFAXAvantFAX搭建电子传真体系基本办事安装01 Ruby

HylaFAX是一个企业级的收发传真的开源系统,功能强大。
利用它可以代替传真机收发传真,可发送相同的传真给多个收件人,轻松和快速地知足用户的需求。

比较实体传真机,利用HylaFAX收发传真更方便,提高事情效率,节约纸张,根据须要决定是否须要打印,备份传真更随意马虎,方便文档化,事情本钱低廉。

AvantFAX是什么?

AvantFAX是一个基于PHP+MySQL开拓,用于通过HylaFAX来管理传真的Web运用系统。

AvantFAX许可多个用户在任何平台上查看、发送传真,通过日期、公司、种别等条件来搜索已收到和发送的传真而不须要安装分外的软件。

硬件需求:

一台旧电脑,配置不须要太高;一个采取Conexant芯片的外置usb modem。

利用系统及紧张软件:

Ubuntu Server 16.04.5 LTS 32Bit (64Bit)Apache2MariaDBPHP5.6HylaFAXAvantFAX

安装步骤:

一、先安装好Ubuntu Server

二、为确保顺利安装并加快下载速率,用户可自行选择给系统添加阿里云源。
编辑/etc/apt/sources.list文件,添加或更换如下源。
【可以到阿里云开源镜像站查看干系镜像地址https://opsx.alibaba.com/mirror?lang=zh-CN】

deb http://mirrors.aliyun.com/ubuntu/ xenial maindeb-src http://mirrors.aliyun.com/ubuntu/ xenial maindeb http://mirrors.aliyun.com/ubuntu/ xenial-updates maindeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates maindeb http://mirrors.aliyun.com/ubuntu/ xenial universedeb-src http://mirrors.aliyun.com/ubuntu/ xenial universedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates universedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universedeb http://mirrors.aliyun.com/ubuntu/ xenial-security maindeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security maindeb http://mirrors.aliyun.com/ubuntu/ xenial-security universedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

三、实行源更新,再给Ubuntu Server升级及打补丁

##先用sudo -s命令进入root用户apt update apt upgrade

四、安装Apache2

apt install apache2

浏览器输入做事器IP地址,如涌现下面画面则表示Apache2安装成功。

五、安装MariaDB数据库

apt install mariadb-server

六、配置MariaDB用户密码及安全设置

##实行如下命令------------------------------mysql_secure_installation------------------------------NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the currentpassword for the root user. If you've just installed MariaDB, andyou haven't set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none): ##此处直接回车OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDBroot user without the proper authorisation.You already have a root password set, so you can safely answer 'n'.Change the root password? [Y/n] y ##设定新密码New password:Re-enter new password:Password updated successfully!Reloading privilege tables.. ... Success!By default, a MariaDB installation has an anonymous user, allowing anyoneto log into MariaDB without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? [Y/n] y ... Success!Normally, root should only be allowed to connect from 'localhost'. Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] y ... Success!By default, MariaDB comes with a database named 'test' that anyone canaccess. This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? [Y/n] y ... Success!Cleaning up...All done! If you've completed all of the above steps, your MariaDBinstallation should now be secure.Thanks for using MariaDB!------------------------------

##实行如下命令,让配置生效。
------------------------------echo "update user set plugin='' where User='root'; flush privileges;" | mysql -u root -p mysql------------------------------Enter password: ##输入新设定密码

七、安装PHP5.6

1. Ubuntu Server 16.04.5默认支持PHP7.x,而AvantFAX只能运行于PHP5.x,要在系统中安装PHP5.x,要先添加干系源,运行如下命令。

apt install software-properties-commonadd-apt-repository ppa:ondrej/phpapt update ##记得更新数据源

2. 安装PHP5.6

apt install php5.6

3. 安装完成后,动行php -v,查看是否安装成功。

4. 安装PHP干系及其它组件

apt install php5.6-mysqlapt install php-mdb2-driver-mysqlapt install php5.6-xmlpear channel-update pear.php.netpear install Mail_mime干系文章

《Ubuntu下利用HylaFAX+AvantFAX搭建电子传真系统-安装HylaFAX02》

《Ubuntu下利用HylaFAX+AvantFAX搭建电子传真系统-安装AvantFAX03》

《Ubuntu下利用HylaFAX+AvantFAX搭建电子传真系统-配置Postfix04》