Issues with Direct IO #495
Comments
that's bizarre. i don't do anything like that on 8chan's install and it uses DIO... |
It had me stumped for about a day as well! I've never used dio so there was a lot of trawling on the dio documentation and a lot of puzzled expressions from me where I realised a very basic test worked fine with fopen but not dio. Following raising the issue with stackoverflow: I found that I'd missed one vital question. Is it using the correct directory! fopen proved that it was able to find the parent directory but dio didn't do the same, presumably because it also uses fancy block devices and such. Hence the hack! Should be easy enough to add in a reference in config.php. I'll look into that once I grab some coffee ;) |
One unexpected recompile of PHP later... I've added $config['rootdir'] to my config.php file and that's not taken the place of the quick hack from before. Additionally, a bit of a FYI while I remember, it looks like there is an issue in 5.6.6 since APC isn't supported. I tried APCu and that also failed to work with the installation. I finally resorted to using the php cache engine by setting this in secrets.php $config['cache']['enabled'] = 'php'; That resolved the issue with APC ;) I'm still seeing issues using rebuild.php which gives the following when output:
I'll let you know how I get on with that. Additionally, I've not been clear exactly what's in use here so here goes:
|
In order to allow DirectIO to work on my installation , I had to add the following to the file_write function:
This just appends my particular web root.
Looks like the fact that parent directories aren't added into the path wrecked dio support.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: