Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

scandir failed to find images in imgroot #8

Open
Solarbotics opened this issue May 6, 2015 · 3 comments
Open

scandir failed to find images in imgroot #8

Solarbotics opened this issue May 6, 2015 · 3 comments

Comments

@Solarbotics
Copy link

NOT a PHP coder by any stretch, so my answer is definitely a kludge.

After getting the ArchLinux/nginx running, I got the script to work but NOT find my img file. My brute force answer was to move the directory containing the images ("/etc/osid//imgroot") to a subdir of the http folder ("/etc/osid/www/public_html/imgroot")

I then changed the code in index.php as follows:
// $ImageFiles = scandir('/etc/osid/imgroot');
$ImageFiles = scandir($_SERVER['DOCUMENT_ROOT'] . '/imgroot');

Looking fwd to using it now!

@Solarbotics
Copy link
Author

Ok, I had to also change the path in the "/etc/osid/system/write.sh". Plus, I broke the file sizer for the image size. Go figure...

Darn. I get stuck at the popup window that says "Connecting to image write sub-system... "

  • progress.info is null
    -status.info is 1
    So... I think it's starting the write.sh file, but it's not getting the the "set the status of the job to two (in progress). Sigh^2. Well, I'll eval it again later.

@snemetz
Copy link

snemetz commented May 6, 2015

You might want to look at or use the install script I wrote. It is in my fork.
https://github.com/snemetz/osid/blob/master/arch_osid_setup.sh

@joshuacollins
Copy link

joshuacollins commented Jan 31, 2017

It's also possible to slightly widen the open_basedir restriction in /etc/php5/fpm/php.ini to be :/etc/osid
and it will be able to read the image files in the original location.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants