I have installed apache 2.4.6 and two php version
one in 5.4 which is with centos 7.6
and one I had installed later to work beside 5.4 it is 5.6
I have installed php56-php-fpm and it works on port 9071
and setup in mysite.conf file
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9071"
</FilesMatch>
Problem is that all pages work except this one (nextcloud) which should use php 5.6
I get error HTTP ERROR 500
When I go directly to www.mysite.com/nextcloud/phpinfo.php
I get php info data show up, but when I go to www.mysite.com/nextcloud/index.php
I get error HTTP ERROR 500
what I am missing?
apach + php
Re: apach + php
Full howto for FPM on
https://developers.redhat.com/blog/2017 ... tion-tips/
500 means server error, so read the log
Probably the php-fpm not running.
https://developers.redhat.com/blog/2017 ... tion-tips/
500 means server error, so read the log
Probably the php-fpm not running.
Re: apach + php
Or you forgot to toggle an selinux boolean to allow httpd to make network connections. Use getsebool -a | grep httpd to see the booleans that mention httpd, most likely you want httpd_can_network_connect
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: apach + php
Our Nextcloud requires read and write access to the data directory.
To verify that, run the following (temporarily):
Test and if it works, then you will setup SELINUX the proper way... And you will never have issues with it.
The fact that others recommend stopping SELINUX - shouldn't be a reason to disable it.
To verify that, run the following (temporarily):
Code: Select all
setenforce 0
The fact that others recommend stopping SELINUX - shouldn't be a reason to disable it.
Re: apach + php
no I did all.
I have disable SElinux.
I read all about FPM
and there was no error in log.
So what I did is I have installed RH-PHP and after that all worked as it should
I have disable SElinux.
I read all about FPM
and there was no error in log.
So what I did is I have installed RH-PHP and after that all worked as it should