# New Installation - PHP not processing

**URL:** <https://community.passbolt.com/t/new-installation-php-not-processing/278>\
**Category:** Installation Issues\
**Created:** [January 11, 2018, 11:12am UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278 "2018-01-11T11:12:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vertigo](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vertigo](https://community.passbolt.com/u/vertigo)\
**Post date:** [January 11, 2018, 11:12am UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/1 "2018-01-11T11:12:25Z")

</div>

Centos 7 / Apache / MariaDB / PHP7

After installation, i try to follow the link to login for the new user and i can only see unprocessed PHP.  
Have i missed some apache config ?

## [root@localhost passbolt]# su -s /bin/bash -c “app/Console/cake passbolt healthcheck” apache

```
 ______  ____  
/ __\____  _________ / /_ ____ / / /_ 

```

/ /_/ / \_\_ `/ / / \_\_ / \_\_ / / \_/  
/ **/ // (** | ) // / // / / /  
// \_,/_ **/** _/._\_\_/\_\ __//\__ /

## Open source password manager for teams

## Healthcheck shell

Environment

[PASS] PHP version 7.0.25  
[PASS] PCRE compiled with unicode support  
[PASS] The temporary directory and its content are writable  
[PASS] The public image directory and its content are writable

Config files

[PASS] The core config file is present  
[PASS] The database config file is present  
[PASS] The email config file is present  
[PASS] The application config file is present

Core config

[PASS] Debug mode is off.  
[PASS] Cache is working.  
[PASS] Unique value set for security.salt  
[PASS] Unique value set for security.cipherSeed  
[PASS] Full base url is set to [https://192.168.1.142](https://192.168.1.142)  
[PASS] App.fullBaseUrl validation OK.  
[FAIL] Could not reach the /healthcheck/status with the url specified in App.fullBaseUrl  
[HELP] Check that the domain name is correct in app/Config/core.php  
[HELP] Check the network settings

SSL Certificate

[FAIL] SSL peer certificate does not validate  
[FAIL] Hostname does not match when validating certificates.  
[WARN] Using a self-signed certificate

Database

[PASS] Configured to use a supported database backend  
[PASS] The application is able to connect to the database  
[PASS] Not using a prefix for database tables  
[PASS] 20 tables found  
[PASS] Some default content is present  
[PASS] The database schema up to date.

GPG Configuration

[PASS] PHP GPG Module is installed and loaded  
[PASS] The server gpg key is not the default one  
[PASS] The environment variable GNUPGHOME is set to /usr/share/httpd/.gnupg  
[PASS] The directory /usr/share/httpd/.gnupg containing the keyring is writable by the user the webserver  
is running as.  
[PASS] The public key file is defined in app/config.php and readable.  
[PASS] The private key file is defined in app/config.php and readable.  
[PASS] The server key fingerprint matches the one defined in app/config.php.  
[PASS] The server key defined in the app/Config.php is in the keyring.  
[PASS] There is a valid email id defined for the server key.  
[PASS] The public key can be used to encrypt and sign a message.  
[PASS] The private key can be used to decrypt a message.

Application configuration

[PASS] Using latest passbolt version (1.6.5)  
[PASS] Passbolt is configured to force SSL use  
[PASS] App.fullBaseUrl is set to HTTPS  
[PASS] Selenium API endpoints are disabled.  
[PASS] Search engine robots are told not to index content.  
[PASS] Registration is closed, only administrators can add users.  
[PASS] Serving the compiled version of the javascript app  
[PASS] All email notifications will be sent.

Development Tools (optional)

[PASS] Phpunit is installed  
[PASS] Phpunit version is 3.7.38

3 error(s) found. Hang in there!

## [root@localhost passbolt]#

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/1X/351296d66418ce69c334ad614e6daa292296ad78.png)  
**Checklist**  
[] I have read intro post: [About the Installation Issues category](https://community.passbolt.com/t/about-the-installation-issues-category/12)  
[] I have read the tutorials, help and searched for similar issues  
[] I provide relevant information about my server (component names and versions, etc.)  
[] I provide a copy of my logs and healthcheck  
[] I describe the steps I have taken to trouble shoot the problem  
[] I describe the steps on how to reproduce the issue

---

<div class="post-metadata">

**Author:** ![ghaberek](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@ghaberek](https://community.passbolt.com/u/ghaberek)\
**Post date:** [January 11, 2018, 2:55pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/2 "2018-01-11T14:55:37Z")

</div>

> [@vertigo](#):
>
> Have i missed some apache config ?

Did you install php-fpm? Have you tried restarting apache? If you installed first apache and then php, or installed both with a single yum command, then apache might not yet know about php.

---

<div class="post-metadata">

**Author:** ![vertigo](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vertigo](https://community.passbolt.com/u/vertigo)\
**Post date:** [January 11, 2018, 5:31pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/3 "2018-01-11T17:31:48Z")

</div>

Hmm i’ve restarted apache but no joy…  
I’ll try NGINX and see what happens

---

<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:** [January 15, 2018, 12:20pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/4 "2018-01-15T12:20:49Z")

</div>

This is not really a passbolt problem, but maybe this tutorial can help:

> **[How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 7 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7)**
>
> In this guide, we'll get a LAMP stack installed on an CentOS 7 VPS. A 'LAMP' stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym...

---

<div class="post-metadata">

**Author:** ![vertigo](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vertigo](https://community.passbolt.com/u/vertigo)\
**Post date:** [January 15, 2018, 2:00pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/5 "2018-01-15T14:00:34Z")

</div>

Thanks remy, i did say i thought it was an apache config issue and not a Passbolt issue.

Probably the install guides need a few extra steps for Apache… I used NGINX in the end and it’s working apart from emails which im looking at.

---

<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:** [January 15, 2018, 2:05pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/6 "2018-01-15T14:05:22Z")

</div>

> i did say i thought it was an apache config issue and not a Passbolt issue.

I didn’t say you didn’t warn us 😉  
I’m glad you’re making progress.

---

<div class="post-metadata">

**Author:** ![ghaberek](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@ghaberek](https://community.passbolt.com/u/ghaberek)\
**Post date:** [January 16, 2018, 6:21pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/7 "2018-01-16T18:21:21Z")

</div>

> [@vertigo](#):
>
> I used NGINX in the end and it’s working apart from emails which im looking at.

If your SMTP configuration is working but your emails still aren’t being sent, have a look at this post I made:

> [@As an admin, I should be able to see when queued emails will not be sent](https://community.passbolt.com/t/as-an-admin-i-should-be-able-to-see-when-queued-emails-will-not-be-sent/279):
>
> Q1. What is the problem that you are trying to solve? While I was trying to work out the SMTP configuration for my Passbolt installation, I apparently ran up against the send\_tries limit in the email\_queue table (apparently the limit is 4.). But the cake EmailQueue.sender command gave no indication that it was refusing to send these emails, even with the --verbose flag. I had to dig into the database manually to discover this and then reset the send\_tries value back to 0 to deliver the message…

---

<div class="post-metadata">

**Author:** ![vertigo](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vertigo](https://community.passbolt.com/u/vertigo)\
**Post date:** [January 16, 2018, 8:43pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/8 "2018-01-16T20:43:00Z")

</div>

Really appreciate the help guys…  
SMTP config is good but they only send when I run the queue command so not why they are not sending automatically.

> [root@localhost passbolt]# su -s /bin/bash -c “app/Console/cake EmailQueue.sender \> mail.log” nginx  
> You have new mail in /var/spool/mail/root

---

<div class="post-metadata">

**Author:** ![ghaberek](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@ghaberek](https://community.passbolt.com/u/ghaberek)\
**Post date:** [January 16, 2018, 9:35pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/9 "2018-01-16T21:35:36Z")

</div>

> [@vertigo](#):
>
> SMTP config is good but they only send when I run the queue command so not why they are not sending automatically.

You have to setup the `EmailQueue.sender` command to be triggered _as nginx_ via cron.

```
[root@passbolt passbolt]# crontab -u nginx -l
* * * * * /var/www/html/passbolt/app/Console/cake EmailQueue.sender >> /var/www/html/passbolt/app/tmp/logs/email.log 2>&1

```

> **[Installation](https://help.passbolt.com/hosting/install)**
>
> The help site for passbolt, the open source password manager for teams. This site contains frequently asked questions, article to troubleshoot common issues,...

---

<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:** [January 21, 2018, 9:40pm UTC](https://community.passbolt.com/t/new-installation-php-not-processing/278/10 "2018-01-21T21:40:10Z")

</div>

Closed on January 21, 2018, 9:40pm UTC

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