Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #190648 > unrolled thread
| Started by | Markus Grunwald <markus@the-grue.de> |
|---|---|
| First post | 2018-01-04 16:20 +0100 |
| Last post | 2018-01-04 17:50 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.debian.user
After upgrade jessie -> stretch : php problems Markus Grunwald <markus@the-grue.de> - 2018-01-04 16:20 +0100
Re: After upgrade jessie -> stretch : php problems Roberto C. Sánchez <roberto@debian.org> - 2018-01-04 16:30 +0100
Re: After upgrade jessie -> stretch : php problems basti <mailinglist@unix-solution.de> - 2018-01-04 16:40 +0100
Re: After upgrade jessie -> stretch : php problems Markus Grunwald <markus@the-grue.de> - 2018-01-04 17:30 +0100
Re: After upgrade jessie -> stretch : php problems Roberto C. Sánchez <roberto@debian.org> - 2018-01-04 17:50 +0100
| From | Markus Grunwald <markus@the-grue.de> |
|---|---|
| Date | 2018-01-04 16:20 +0100 |
| Subject | After upgrade jessie -> stretch : php problems |
| Message-ID | <v4ftg-7go-11@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hello, Today I tackled the upgrade from jessie to stretch on my "production" server (hosts a few websites). Almost all went smoothly, but a few problems remain. One is this: The cron job of my owncloud installation reports this: --------------------------------------------------------------------- No database drivers (sqlite, mysql, or postgresql) installed. PHP is configured to populate raw post data. Since PHP 5.6 this will lead to PHP throwing notices for perfectly valid code. To fix this issue set <code>always_populate_raw_post_data</code> to <code>-1</code> in your php.ini PHP modules have been installed, but they are still listed as missing? Please ask your server administrator to restart the web server. --------------------------------------------------------------------- I have absolutely no clue about php and surely didn't touch any of these packages (besides installing them because I need them for owncloud and drupal). I have searched /etc for all php.ini files and changed always_populate_raw_post_data as requested, without success. php modules for mysql are installed. Now I have no idea what is still wrong, because I still get the error messages (as mail from the cronjob which floods my mail :( ) Maybe of interest: that's part of the phpinfo() output: PHP Version 5.6.30-0+deb8u1 Directive Local Value Master Value allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data -1 -1 Installed packages regarding php: as textfile in the attachments to keep the formatting... I would be very glad, if you could help me. Also, please have a look at my other problem with munin (doh) cu -- Markus Grunwald http://www.the-grue.de/~markus/markus_grunwald.gpg
[toc] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2018-01-04 16:30 +0100 |
| Message-ID | <v4fCW-7lB-9@gated-at.bofh.it> |
| In reply to | #190648 |
On Thu, Jan 04, 2018 at 04:16:25PM +0100, Markus Grunwald wrote: > > Maybe of interest: that's part of the phpinfo() output: > > PHP Version 5.6.30-0+deb8u1 > Directive Local Value Master Value > allow_url_fopen On On > allow_url_include Off Off > always_populate_raw_post_data -1 -1 > What is the output of `ls -l /etc/apache2/mods-enabled/php*`? Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [next] | [standalone]
| From | basti <mailinglist@unix-solution.de> |
|---|---|
| Date | 2018-01-04 16:40 +0100 |
| Message-ID | <v4fMC-7p9-15@gated-at.bofh.it> |
| In reply to | #190648 |
Hello, first of all check the installed / activate modules in you php environment. that means and "php -i" on cli can have other results than run phpinfo() via browser / apache2 or fastcgi if used. Are the relevant modules active ? Have you try to reload / restart your http / (fastcgi if used) server? I had also trouble with php 5.6 and php 7.0 modules installed at same time but don't know the details anymore. can you connect to your mysql server via cli? I remember that a php site show error "missmatch module version" but there where a permission problem while connection to db. Best regards, Basti On 04.01.2018 16:16, Markus Grunwald wrote: > Hello, > > Today I tackled the upgrade from jessie to stretch on my "production" > server (hosts a few websites). > > Almost all went smoothly, but a few problems remain. One is this: The > cron job of my owncloud installation reports this: > > --------------------------------------------------------------------- > No database drivers (sqlite, mysql, or postgresql) installed. > > > PHP is configured to populate raw post data. Since PHP 5.6 this will > lead to PHP throwing notices for perfectly valid code. > To fix this issue set <code>always_populate_raw_post_data</code> to > <code>-1</code> in your php.ini > > PHP modules have been installed, but they are still listed as missing? > Please ask your server administrator to restart the web server. > --------------------------------------------------------------------- > > I have absolutely no clue about php and surely didn't touch any of these > packages (besides installing them because I need them for owncloud and > drupal). > > I have searched /etc for all php.ini files and changed > always_populate_raw_post_data as requested, without success. > > php modules for mysql are installed. > > Now I have no idea what is still wrong, because I still get the error > messages (as mail from the cronjob which floods my mail :( ) > > Maybe of interest: that's part of the phpinfo() output: > > PHP Version 5.6.30-0+deb8u1 > Directive Local Value Master Value > allow_url_fopen On On > allow_url_include Off Off > always_populate_raw_post_data -1 -1 > > > Installed packages regarding php: as textfile in the attachments to keep > the formatting... > > I would be very glad, if you could help me. > Also, please have a look at my other problem with munin (doh) > > cu >
[toc] | [prev] | [next] | [standalone]
| From | Markus Grunwald <markus@the-grue.de> |
|---|---|
| Date | 2018-01-04 17:30 +0100 |
| Message-ID | <v4gyZ-7Zz-1@gated-at.bofh.it> |
| In reply to | #190648 |
[Multipart message — attachments visible in raw view] — view raw
Hello, after you told me that cli and http don't have to use the same php (sigh), I have a workaround: 17 3 * * * www-data php5 -f /srv/www/the-grue.de/owncloud/htdocs/cron.php Now I explicitly call php5 instead of php and all is fine... But this is only a workaround, I think. cu -- Markus Grunwald http://www.the-grue.de/~markus/markus_grunwald.gpg
[toc] | [prev] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2018-01-04 17:50 +0100 |
| Message-ID | <v4gSl-86g-3@gated-at.bofh.it> |
| In reply to | #190652 |
On Thu, Jan 04, 2018 at 05:29:10PM +0100, Markus Grunwald wrote: > Hello, > > after you told me that cli and http don't have to use the same php > (sigh), I have a workaround: > > 17 3 * * * www-data php5 -f > /srv/www/the-grue.de/owncloud/htdocs/cron.php > > > Now I explicitly call php5 instead of php and all is fine... But this is > only a workaround, I think. What version of ownCloud? Some versions may not work with PHP 7.0. I run a Phabricator instance and when I upgraded to stretch, I had manually install PHP 7.1 because something with PHP 7.0 (I do not recall what now) was not compatible. You may be encountering something similar. Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web