PHP not working on fresh install CB2 on CentOS7

Pzz

Verified User
Joined
May 20, 2013
Messages
138
Location
The Hague area, The Netherlands
Hi,

I installed on a new CentOS 7 server DA and configured CB2 for PHP 5.6.

And now I gave it a try for a simple .php with phpinfo() and I get:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Which tells me that PHP is not running?

My "./build options" are:

Apache: 2.4.10
mod_ruid2: no
htscanner: no
Dovecot: 2.2.13
AWstats: no
Exim: no
exim.conf update: no
SpamAssassin: no
ClamAV: no
MariaDB: 5.5.39
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
PHP (default): 5.6 as php-fpm
phpMyAdmin: 4.2.9.1-all-languages
ProFTPD: no
Pure-FTPd: 1.0.36
RoundCube webmail: 1.0.3
Replace "php.ini" with './build all' and './build php_ini': no
Auto updates/notifications: no
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.22-20140402_0200
Zend Guard Loader: no
ionCube loader: no
Suhosin: no

Apache is running, so is MariaDB.

My DA-user has PHP ON
My DA systeminfo shows: php 5.6.1 Installed

Any clues where to start?

Thanx!
 
What if you do:
Code:
systemctl restart php-fpm56.service

That should fix your problem :) Related: https://www.directadmin.com/features.php?id=1673. Issue is only PHP mode (PHP-FPM) & CentOS7 related. DA pre-release binaries should fix the problem permanently on your system (switching PHP mode would fix it too).
 
Back
Top