What's the problem?
Hello, I've got problem with my Apache server (I'm using PHP). Everything like redirecting, serving views - all simple operations works fine. However when I'm trying to do something more 'complicated', for example connect to MongoDB or use phpinfo()
function, then the browser shows only the blank page with the header - This Site can't be reached ERR_EMPTY_RESPONSE
.
In the var/log/apache2/error.log
file it shows this error message everytime it shows the blank page:
child pid < some number here > exit signal Segmentation Fault (11)
What could caused the problem?
So all this problems starts to happen after I was trying to install mongodb drivers for PHP and did some operations. It was showing me this error:
mongodb/mongodb 1.8.0 requires ext-mongodb ^1.8.1 -> the requested PHP extension mongodb has the wrong version (1.2.3) installed
So I did a couple of things after reading on internet how to solve this problem:
- I added the
extension=mongo.so
inphp.ini
file - I used
sudo apt install php-dev
to enablepecl
command (becouse I couldn't use it before) - Then I entered this command to update all mongodb extensions:
sudo pecl install mongodb
- And I required mongodb using composer in my project folder
And after all this steps, I have this 'blank page' problem.
I uninstalled php-dev
but of course it didn't change nothing. I couldn't find similar problem to mine on internet.