POV-Ray : Newsgroups : povray.unix : Need Help With Running POV-Ray Through PHP : Re: Need Help With Running POV-Ray Through PHP Server Time
20 May 2024 10:20:12 EDT (-0400)
  Re: Need Help With Running POV-Ray Through PHP  
From: Le Forgeron
Date: 13 Mar 2011 04:33:46
Message: <4d7c816a$1@news.povray.org>
Le 13/03/2011 07:57, Jess nous fit lire :
> 
>> Time to check the rights of user 48, including its groups. (and the
>> compatibility with the installation of povray)
>> Can you "su - to_the_name_of_user_48" ?
>> (have a look/grep in /etc/passwd for 48)
> 
> Here's the output when I grep-ed for 48. User 48 appears to be in Apache.
> 
> [jlb41@wyrd ~]$ grep 48 /etc/passwd
> apache:x:48:48:Apache:/usr/local/apache2:/bin/bash

>> And sanity check first: can 48 write in the current directory ?
>> Can php/web create a file ?
>>     system("date >new_test_file")
> 
> PHP couldn't create the date file, so I guess that means User 48/PHP doesn't
> have permission to create files.

It's a matter of rights. I guess that jlb41 & apache are not in the same
primary group either, so the directory /home/jlb41/public_html would
need to be writable by other (and that might become a security/deface
issue; you might want to play in a deeper sub-directory in production).

First take note of the rights from "ls -ld /home/jlb41/public_html"
then try "chmod 777 /home/jlb41/public_html"
and try again php for system("date >new_test_file")

If it works, then try povray.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.