On Thu, Mar 20, 2014 at 6:05 PM, Matt Ficken <themattfic...@gmail.com> wrote: > Hi, > > As discussed earlier, I am adding a script to qa.php.net to publish test > reports. > > It seems that while my script(pftt_report.php) can create directories, it > can not create files(test reports) in those directories. This all works > locally for me (builtin web server), but silently fails on qa.php.net. I > don't get any error or warning message, I get the success message the end > of the script prints. I have it returning the directory contents which does > not include the file I just uploaded. > > > There is a POST script, qa.php.net/pftt_report.php, which I upload a test > report file to (just a plain HTML file) and the script is supposed to store > the html file in a directory for that branch(5_5, etc...) and > revision(5.5.10rc1 etc...). > > There are some other scripts that then read those directories to list those > HTML files which the user needs to be able to read. > > Initially, it was going to store HTML test reports in /reports/ > (/reports/php_5_5/5.5.5.10rc1/phpt.html), but I tried moving it to > /reports/db/ since the existing run-tests infrastructure writes sqlite > files there. Since the files my script stores need to be readable by users, > I modified the .htaccess file in /reports/db to allow that. > > > Does someone have access to server logs? Is this an fs permission problem? > Is there a way around this? > > The run-tests infrastructure uses sqlite files, while I'm using > pregenerated HTML test reports, which need to be readable by users. > Otherwise, there aren't any differences.
Grr... I haven't been around so didn't notice you've been trying to debug this for days, sorry! The error logs are flooded with unrelated things so its a bit confusing. I updated the permissions on the folders, they looked a bit weird, and pushed few warning fixes. The permissions are now: $ ls -lad /local/svn/qa_trunk/reports/db/PHP* drwxr-xr-x 2 www-data www-data 4096 Mar 20 23:22 /local/svn/qa_trunk/reports/db/PHP_5_4 drwxr-xr-x 2 www-data www-data 4096 Mar 20 22:33 /local/svn/qa_trunk/reports/db/PHP_5_5 Both of these folders are empty at the time of this writing I hope it works now. If not, send me your ssh key and you can debug it yourself on the server. -Hannes -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php