Difference between revisions of "Install OS4X on Ubuntu 16"

From OS4X
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== General ==
 +
Ubuntu 16.x is supported by the automatic OS4X installer since build 2016-11-24. Older versions lack the ability to support various features of this modern operating system.
 +
 
== Packages ==
 
== Packages ==
 
You need the following packages to be installed:
 
You need the following packages to be installed:
  apache2
+
  apt-get install apache2 \
  mysql
+
  mysql-server \
  libapache2-mod-php7.0
+
  libapache2-mod-php7.0 \
  php7.0-mysql
+
  php7.0-mysql \
  php-xml
+
  php-xml \
  xsltproc
+
  xsltproc \
 +
zip
 +
 
 +
== Special installation parameter ==
 +
When running the automated installer script, you will have to use "<code>localhost</code>" instead of "<code>127.0.0.1</code>" in the default MySQL installation (since the MySQL user "<code>root</code>" isn't allowed for 127.0.01, but for localhost). You'll get the following error otherwise:
 +
error: 'Access denied for user 'root'@'localhost''
 +
 
 +
== Configuration ==
 +
=== PHP ===
 +
The PHP configuration must be extended in order to use big file uploads. Edit the configuration file
 +
/etc/php/7.0/apache2/php.ini
 +
and set these values:
 +
upload_max_filesize = 128M
 +
post_max_size = 128M
 +
Don't forget to restart Apache afterwards (see below).
 +
 
 +
=== Apache prefork ===
 +
The PHP7 module only works correctly in Apache2 prefork mode. If you have a previously installed Apache, you have to switch from MPM mode to prefork:
 +
a2dismod mpm_worker
 +
a2enmod mpm_prefork
 +
Don't forget to restart Apache afterwards (see below).
  
== Configuration changes ==
 
 
=== Apache ===
 
=== Apache ===
In order to use PHP7 with Apache, you have to switch from default MPM to pre-fork mode:
+
After successful installation of all required packages, you have to restart the Apache webserver once in order to load the MySQL functionality in the PHP module:
a2dismod mpm_event
 
a2enmod mpm_prefork
 
a2enmod php7.0
 
 
  service apache2 restart
 
  service apache2 restart

Latest revision as of 21:48, 8 December 2016

General

Ubuntu 16.x is supported by the automatic OS4X installer since build 2016-11-24. Older versions lack the ability to support various features of this modern operating system.

Packages

You need the following packages to be installed:

apt-get install apache2 \
mysql-server \
libapache2-mod-php7.0 \
php7.0-mysql \
php-xml \
xsltproc \
zip

Special installation parameter

When running the automated installer script, you will have to use "localhost" instead of "127.0.0.1" in the default MySQL installation (since the MySQL user "root" isn't allowed for 127.0.01, but for localhost). You'll get the following error otherwise:

error: 'Access denied for user 'root'@'localhost

Configuration

PHP

The PHP configuration must be extended in order to use big file uploads. Edit the configuration file

/etc/php/7.0/apache2/php.ini

and set these values:

upload_max_filesize = 128M
post_max_size = 128M

Don't forget to restart Apache afterwards (see below).

Apache prefork

The PHP7 module only works correctly in Apache2 prefork mode. If you have a previously installed Apache, you have to switch from MPM mode to prefork:

a2dismod mpm_worker
a2enmod mpm_prefork

Don't forget to restart Apache afterwards (see below).

Apache

After successful installation of all required packages, you have to restart the Apache webserver once in order to load the MySQL functionality in the PHP module:

service apache2 restart