I have recently updated my server and it forced a PHP update from PHP 5 to 7.

I got all my php.ini files point to .dll files (php_curl.dll for example) and not to curl.so. (it's pointing to the files in /var/lib/php/20131012/ where all the files there are .so - which make scence).

Can that cause any other problems in the future with other things (like fork, which was installed in the previous php5 and now doesn't work).

What is mostly recommended to do in this case in the best secure way for not messing up my server (although the feeling that it's messed up already).

Running the query after this edit outputs an error an my email file: /var/mail/root which says:

/usr/lib/php5/sessionclean: 12: /usr/lib/php5/sessionclean: php5: not found

What is going on??

/usr/lib/php5/sessionclean: 12: /usr/lib/php5/sessionclean: php5: not found

I just updated php on my Debian and had the same error. Check if you fully deleted php5, I had to manually uninstall package php5-common. (Package php5 was however uninstalled automatically by dist-upgrade)

  • Thank you so much I have been trying to figure out what was wrong with the code and settings of the PHP where nothing didn't seem wrong. This solved my problem!!! – Kar19 May 8 '16 at 8:19

Try to comment all extensions with .dll restart apache and see if it works. Mine was resolved after doing so. Don't forget to backup your php.ini file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.