Re: tutorial failure

From: Date: Wed, 18 Aug 2010 10:58:52 +0000
Subject: Re: tutorial failure
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-307526@lists.php.net to get a copy of this message
What are the actual file permissions when you run ls -o? Do you know if PHP is installed as an apache mod or cgi? Also you might check what user apache is running as. possibly... $ vi /etc/apache2/envvars and look for something like... export APACHE_RUN_USER=www-data On Wed, Aug 18, 2010 at 6:47 AM, e-letter <inpost@gmail.com> wrote: > On 18/08/2010, chris h <chris404@gmail.com> wrote: > > php is not processing the file. There's a few reasons for this, but the > > first thing I would check is the permissions of the file. From the > > directory try > > > > $ ls -oa > > > The file permission was confirmed as root, since it was copied (as > root) from a normal user account directorp 'temporary' to the > directory '/var/www/html' > > > This should tell you who owns the file and what it's permissions are. > You > > mentioned that you copied it as root, you could change it's ownership to > > www-data. > > > This fails: > > [root@localhost html]# chown www-data test.php > chown: `www-data': invalid user > > So I repeated this with a normal user account and the change in > permission occurs. However, the html file containing the php script > remains unchanged. > > The instruction: > > ... > <?php phpinfo() ?> > ... > > Does not show the version of php. >

« previous php.general (#307526) next »