# Fresh install - PHP 7.2.2 - Issues with install

**URL:** <https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367>\
**Category:** Installation Issues\
**Created:** [February 8, 2018, 3:00pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367 "2018-02-08T15:00:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgomon](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mgomon](https://community.passbolt.com/u/mgomon)\
**Post date:** [February 8, 2018, 3:00pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/1 "2018-02-08T15:00:13Z")

</div>

When executing the following command:

`su -s /bin/bash -c "app/Console/cake install --no-admin" apache`

I get the below error:

> PHP Fatal error: Cannot use ‘object’ as class name as it is reserved in lib/Cake/Core/Object.php on line 18

I have gone over the setup and made sure I didn’t leave open quotes, etc.

OS: CentOS 7.4.1708 x86\_64  
PHP: PHP 7.2.2 (remi repo)  
Apache: 2.4.6

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [February 8, 2018, 4:43pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/2 "2018-02-08T16:43:03Z")

</div>

Hi @mgomon,

The upcoming v2 should be compatible with 7.2. Passbolt 1.x relies on Cakephp v2.9 and does not support php 7.2. In the meantime you can try running the v2-rc1: [[v2.0.0-RC] Upgrade to v2 Release Candidate](https://community.passbolt.com/t/v2-0-0-rc-upgrade-to-v2-release-candidate/332)

Cheers,

---

<div class="post-metadata">

**Author:** ![mgomon](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mgomon](https://community.passbolt.com/u/mgomon)\
**Post date:** [February 8, 2018, 6:30pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/3 "2018-02-08T18:30:09Z")

</div>

Yes I found this out after posting this messsage 🙂 thanks! I am running through the install now but encountering some troubles. I will start fresh and see where I end up and post back if any issues arise.

Thanks!

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [February 8, 2018, 6:34pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/4 "2018-02-08T18:34:58Z")

</div>

@mgomon thanks for testing 7.2 support, it’s much appreciated, if you find something weird with the RC1 let us know, we’ll fix it asap.

---

<div class="post-metadata">

**Author:** ![mgomon](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mgomon](https://community.passbolt.com/u/mgomon)\
**Post date:** [February 8, 2018, 7:45pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/5 "2018-02-08T19:45:28Z")

</div>

Working with a remote database (another local server) is not working. I confirmed I could connect using the mysql command as well as telnet to the port.

> $ su -s /bin/bash -c “/var/www/site.com/bin/cake passbolt install” apache  
> Running baseline checks, please wait…  
> There are some issues with the database configuration.  
> Please run ./app/Console/cake passbolt healthcheck for more information and help.

> $ su -s /bin/bash -c “./bin/cake passbolt healthcheck” apache  
> Database
> 
> [FAIL] The application is not able to connect to the database.  
> [HELP] Double check the host, database name, username and password in config/passbolt.php  
> [HELP] Make sure the database exists and is accessible for the given database user.  
> [FAIL] No table found  
> [HELP] Run the install script to install the database tables  
> [HELP] sudo su -s /bin/bash -c “/var/www/site.com/bin/cake install” apache  
> [FAIL] No default content found  
> [HELP] Run the install script to set the default content such as roles and permission types  
> [HELP] sudo su -s /bin/bash -c “/var/www/site.com/bin/cake install” apache  
> [FAIL] The database schema is not up to date.  
> [HELP] Run the migration scripts:  
> [HELP] sudo su -s /bin/bash -c “/var/www/site.com/bin/cake migrations migrate” apache  
> [HELP] See. [Passbolt Help | Update](https://www.passbolt.com/help/tech/update)

Is there something special that needs to be done to access a remote database?

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [February 8, 2018, 7:51pm UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/6 "2018-02-08T19:51:07Z")

</div>

You can try to tweak the database section of the configuration in config/passbolt.php with information from: [https://book.cakephp.org/3.0/en/orm/database-basics.html#database-configuration](https://book.cakephp.org/3.0/en/orm/database-basics.html#database-configuration)

Do you have any information in the /logs about why the connection is not working?

---

<div class="post-metadata">

**Author:** ![mgomon](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mgomon](https://community.passbolt.com/u/mgomon)\
**Post date:** [February 9, 2018, 12:59am UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/7 "2018-02-09T00:59:09Z")

</div>

Yes I made the changes required. And from the Cake framework docs I even added some of the extra params after you sent the above link (not before).

> ```
> // Database configuration.
> 'Datasources' => [
> 'default' => [
> 'className' => 'Cake\Database\Connection',
> 'driver' => 'Cake\Database\Driver\Mysql',
> 'persistent' => false,
> 'host' => 'remote_host_ip',
> 'port' => '3306',
> 'username' => 'passbolt_db_user',
> 'password' => 'passwd',
> 'database' => 'passbolt_db',
> 'encoding' => 'utf8',
> 'timezone' => 'UTC',
> 'cacheMetadata' => true,
> ],
> ],
> 
> ```

Logs show this line each time:

> 2018-02-09 00:41:05 Warning: Warning (2): array\_keys() expects parameter 1 to be array, null given in [/var/www/site.com/plugins/PassboltTestData/src/Shell/Task/DataTask.

Thanks

---

<div class="post-metadata">

**Author:** ![mgomon](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mgomon](https://community.passbolt.com/u/mgomon)\
**Post date:** [February 9, 2018, 1:40am UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/8 "2018-02-09T01:40:03Z")

</div>

Database server was running 5.1 and I upgraded to 5.5. I think the whole server needs an upgrade but that is another story! lol.

Looks like the install is fine now that the DB server is updated.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/b/bee7d3f9329f668000d46e9fcb2e5db1e9d31348.svg) [@system](https://community.passbolt.com/u/system)\
**Post date:** [February 14, 2018, 1:40am UTC](https://community.passbolt.com/t/fresh-install-php-7-2-2-issues-with-install/367/9 "2018-02-14T01:40:05Z")

</div>

Closed on February 14, 2018, 1:40am UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
