Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Dokuwiki Fails to display/download images/pdfs - Mac OS X Server 10.11.6, php 5.6.36 and Greebo
When displaying or downloading pdf/images fetch.php fails to retrieve them
Avatar
gravitoon #1
Member since Aug 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Dokuwiki Fails to display/download images/pdfs - Mac OS X Server 10.11.6, php 5.6.36 and Greebo
I upgraded Dokuwiki to 2018-04-22a "Greebo". I am currently using Mac OS X Server El Capitan 10.11.6. I had to install a new version of php on server to make the upgrade work and point in apache to the new php module /Library/Server/Web/Config/apache2/http_server_app.config. However when people try and download pdfs -or view them, sometimes it reports then as being 0 size. If I relink the pdfs I get inconsistent results -sometimes it works and other times it does not. Images sometimes display and other times do not. Any ideas? What is the latest version of dokuwiki that does not require php 5.6. I upgraded the wiki via the upgrade plugin.
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 383 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
What is the latest version of dokuwiki that does not require php 5.6.
See https://www.dokuwiki.org/changes
allthatyouhear #3
Member since Aug 2007 · 33 posts
Group memberships: Members
Show profile · Link to this post
I think I have a nearly identical setup, which I have also just jumped from Detritus – and again with a PHP upgrade. Same version of PHP on my faster Sierra Mac is OK, but the server is struggling to fetch images properly.

I am seeing the CPU flatline at 100% whenever I try to load a page with images, so I wonder if something has broken on the media management side?

I can't believe that my 2.66GHz Intel Core 2 Duo Mac mini Server suddenly doesn't have enough grunt to deliver 4 <100KB image files!

Grateful for any thoughts as to how to troubleshoot this!

Thanks.
Avatar
Michaelsy #4
Member since Jun 2015 · 745 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #1
Is there possibly a correlation with:

https://forum.dokuwiki.org/thread/16300 ???

Other environment but similar symptom.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
allthatyouhear #5
Member since Aug 2007 · 33 posts
Group memberships: Members
Show profile · Link to this post
I don't think it's related: I see 100% CPU and only partial loading of images even if none are set to scale.

I tried opening the previous install on the server – still set to use PHP 5.6 – and I had the same problems as with Greebo, so I suspect it's changing the PHP version that's done it?

Is it worth trying the latest PHP version instead?
Avatar
Michaelsy #6
Member since Jun 2015 · 745 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #1
What is the latest version of dokuwiki that does not require php 5.6.

As far as I can see Frusterick Manners requires PHP 5.3. I take this information from this source:
https://github.com/splitbrain/dokuwiki/blob/c3e73d4f9e10cd…
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #7
Member since Oct 2009 · 4544 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #5
Something else is going on in these cases, other than dokuwiki, greebo and php.  Out of curiosity, I updated a 10 year old macbook pro with the same system as both of these, El Capitain and 2.66 processor.  I upgraded to Greebo and  to php 7.2.  Responses to large images and a pdf of 1.2 megs were instantaneous.   The only difference may be that my old machine has 8 gigs of memory.  That I don't know, as I stopped following mac for some years now, when apple stopped upgrading the mac mini.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Michaelsy #8
Member since Jun 2015 · 745 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
There is an issue at Github:
https://github.com/splitbrain/dokuwiki/issues/2474
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
allthatyouhear #9
Member since Aug 2007 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #7
I tried to update PHP to 7.2 but it refused to load in the Server app ("Can't locate API module structure `php5_module' in file /usr/local/php5/libphp7.so"). I chased my tail round the Internet for a few hours and failed to fix that, so had to revert to 5.6.36.

How did you install PHP 7.2? Perhaps you're not using Server?

The problem I am seeing is that some images simply do not appear, or appear as just outlines. I get a different subset images each time I refresh the page, but never all. Media Manager thumbnails are inconsistent.

CPU usage is 100%; RAM usage (4GB) isn't.

I do change post_max_size  & upload_max_filesize in php.ini, but reverting those changes makes no odds. phpinfo shows memory_limit as 256M even though it's not overridden from the default 128M.

Are there any timeouts I could tweak, so even if it takes a long time the pages still load?

Are there any logs I could peruse?!
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4544 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I used this as my source: https://php-osx.liip.ch/ and followed the instructions there, installing from the terminal using sudo. I also updated the root's .profile as instructed in the first of the Frequently asked Questions, but I'm not sure if that is necessary, probably needed only for command line use by someone who has sudoed to root.

CPU usage is 100%; RAM usage (4GB) isn't
Does this mean that you have 4GB or ram but it is not 100% in use? That could be a possible source of the problem since the standard mac mini server comes with 8GB and it is not only physical memory that is involved but the swap.  If for some reason there is a great deal of swapping back and forth, that could become a problem.  My macbook pro, just idling, uses more than 4GB  of physical memory. And I would assume that the server is even more memory inntensive.

One possibility is that you have a plugin which is eating up memory and cpu because of some incompatiblity.  It is usually a good  idea to disable your plugins and reenable themn one at a time.

The web server's error log is found in /var/log/apache2.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
allthatyouhear #11
Member since Aug 2007 · 33 posts
Group memberships: Members
Show profile · Link to this post
The instructions on that site don't apply if you're using Server as the Apache settings are in /Library/Server/Web/Config/apache2/httpd_server_app.conf not /etc/apache2/httpd.conf. What's more, I didn't have a /usr/local/php5/libphp5.so file after upgrading to PHP 7, and no attempt to edit httpd_server_app.conf would make it load the /usr/local/php5/libphp7.so file I did have properly – see error above.

My Mac mini Server (Mid 2010) has only 4GB of RAM. It is only using 2GB, with swap file at 0KB. It was perfectly fine before updating…

I have disabled all plugins: no change. Even clicking on a direct link of an image to load just that image in a new tab doesn't work.

I can view the logs through the Server app – I was trying to ask what to look for as I'm not seeing anything obvious in the error logs.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-03-21, 23:46:49 (UTC +01:00)