Feng Forum

Support => Getting Started => : philmi January 14, 2016, 06:55:02 AM

: php 7.0
: philmi January 14, 2016, 06:55:02 AM
Hello
I don't know if Feng Office is compatible with php 7 yet or if it will be soon.
I haven't seen any description on this on the roadmap.
I tried to install Feng Office on php 7 and I have the problem below on the second step of the installation

Step 2: Environment checks

OK: PHP version is 7.0.0
Error: 'mysql' extension is not loaded
OK: 'gd' extension is loaded
OK: 'simplexml' extension is loaded
OK: /config is writable
OK: /cache is writable
OK: /upload is writable
OK: /tmp is writable


This appear with Feng 3.0.4.7 installation
Of course, there is PDO support enabled
PDO Driver for MySQL   enabled
Client API version   5.1.63


Well, if someone can give me info on this
Thank's
: Re: php 7.0
: philmi January 15, 2016, 05:44:43 AM
I had an answer from Conrado Viņa, CEO at Fengoffice, yesterday.
At this time, Fengoffice have not been tested with php7.
To be continued so
Philippe
: Re: php 7.0
: mwestre May 09, 2016, 06:15:19 AM
Hi,

I have the same problem.
Is there any update regarding this matter?
Running a new 16.04 Ubuntu install, with php 7 installed.

OK: PHP version is 7.0.4-7ubuntu2
Error: 'mysql' extension is not loaded
OK: 'gd' extension is loaded
OK: 'simplexml' extension is loaded
OK: /config is writable
OK: /cache is writable
OK: /upload is writable
OK: /tmp is writable

Some feedback would be greatly appreciated!
: Re: php 7.0
: steveg May 10, 2016, 03:20:56 PM
php7 is not currently supported, so you will have to roll back to 5.4+ for the FO installation.
: Re: php 7.0
: IvanFLO November 15, 2016, 03:39:35 PM
I have the same errors

OK: PHP version is 7.0.4-7ubuntu2
Error: 'mysql' extension is not loaded
OK: 'gd' extension is loaded
OK: 'simplexml' extension is loaded
OK: /config is writable
OK: /cache is writable
OK: /upload is writable
OK: /tmp is writable

My server requires PHP7 for other applications.
When would a eta to fix this problem?

Thanks
: Re: php 7.0
: rubenibarra November 16, 2016, 02:57:22 PM
I am having this issue as well. However, I think I can fix the issue directly as I think I know where the problem is. Where can I assign this bug to me?

By the way, I posted this accidentally as a new topic. I apologize for my mistake.
: Re: php 7.0
: IvanFLO November 17, 2016, 08:52:27 AM
Hello,

When copying the complete 'office to the webserver, It starts whit
Step 1
:
Step 1: Welcome

Feng Office is an open source web office. It includes document, spreadsheet and presentation web editor as well as a project management system. Feng Office is:

Easy to use - basic set of tools that just work
Easy to install - here you are, just follow the instructions
100% free - free for all, even for commercial use
Web based - after installation the only thing you'll need is a web browser
Installation steps:

Welcome
Environment check
Configuration
Finish
You should be done shortly.


Step 2
Step 2: Environment checks

OK: PHP version is 7.0.8-3ubuntu3
Error: 'mysql' extension is not loaded
OK: 'gd' extension is loaded
OK: 'simplexml' extension is loaded
OK: /config is writable
OK: /cache is writable
OK: /upload is writable
OK: /tmp is writable

MYSystem
:
$CMS_VERSION = "1.12.2";
$CMS_VERSION_NAME = "Kolonia";
$CMS_SCHEMA_VERSION = "37";

I run my own Linux Ubuntu server:
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

Server: Localhost via UNIX socket
Servertype: MySQL
Serverversie: 5.5.52-0ubuntu0.14.04.1 - (Ubuntu)
Protocolversie: 10
Gebruiker: xxxxx@localhost
Karakterset van server: UTF-8 Unicode (utf8)

Apache/2.4.7 (Ubuntu)
Client-versie van databank: libmysql - 5.5.52
PHP-uitbreiding: mysqli

Yesterday I installed
apt-get nstall -y mysql *
apt-get nstall -y php7*



I run other webpages, configured for php7, so downwardds is not an option.


My WebServer is next to me, fyi.

Yours Sincerely

Ivan
: Re: php 7.0
: mknowlton November 21, 2016, 12:56:39 PM
Feng Office uses MySQL, this feature has been removed from PHP7 in favor of MySQLi. If you have a Ubuntu box and know a bit about the CLI you can recompile MySQL back into PHP7 and continue with your installation. Run a google search for "How to put MySQL functions back into PHP 7". You should find an article from ckon on wordpress with a very good tutorial.
: Re: php 7.0
: pasnox January 16, 2017, 07:19:27 PM
Many distributions still provide pdo mysql (even ubuntu 16.04).
Though this still does not allow fengoffice to run under php7.
Getting error 'Class DB not found' in the functions.php / __shutdown() code.

Is any php7 port planned, php5 is quite old from now on :/
: Re: php 7.0
: peteman52 February 04, 2017, 12:57:17 PM
I ported fengoffice 3.4.4.1 to php 7.
At the moment it looks fine but it needs thoroughly testing.

My system:
Distributor ID:   Ubuntu
Description:   Ubuntu 16.04.1 LTS
Release:   16.04
Codename:   xenial
Linux 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

PHP
7.0.13-0ubuntu0.16.04.1 (cli) ( NTS )

mysql 
Ver 14.14 Distrib 5.7.17, for Linux (x86_64)

Apache Server version:
Apache/2.4.18 (Ubuntu)
2016-07-14T12:32:26

Anybody interested is free to contact me.
: Re: php 7.0
: erama May 10, 2017, 03:10:08 PM
Hi peteman52, how can I do it, I need run fengoffice with PHP7.0 and mysqli support?...

 Thank you very much!
: Re: php 7.0
: vl May 11, 2017, 09:31:52 AM
This is Mysqli db adapter  vl.hotkey.ru/files/fo3/MysqliDBAdapter.class.php.bz2
download, unpack in  environment/library/database/adapters
Change config to define('DB_ADAPTER', 'mysqli');
: Re: php 7.0
: stech October 05, 2017, 10:28:14 AM
For some reason I could not post a new topic with my patch files (Upload path not found errors), so I gave up and just posted it on my company's website.  Blocking external links in a forum is ridiculous too.
silvatechsolutions.com tech-tips new-ubuntu-server-install-fengoffice-php-7
: Re: php 7.0
: netgifted November 02, 2017, 08:40:41 PM
Same problem here Error: 'mysql' extension is not loaded I'm trying to install on a Godaddy server
: Re: php 7.0
: vikas12340 May 01, 2018, 12:13:35 PM
thanks for sharing the info
: Re: php 7.0
: ghostwriter July 05, 2018, 10:27:40 AM
Hi

Is this still an issue? I have an Ubuntu Server 16.04 LTS with mysqld and the default php 7.0x.
What do I need to change to be able to use Feng Office?

I tried it but got the error noticed above about the missing extension (Error: 'mysql' extension is not loaded)

Regards,
ghostwirter