From: chris h on
On Wed, Aug 18, 2010 at 7:10 AM, e-letter <inpost(a)gmail.com> wrote:

> On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
> > What are the actual file permissions when you run ls -o?
> >
> root
>

What's the entire output of 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.
> >
> No. How to verify?
>
> > possibly...
> > $ vi /etc/apache2/envvars
> >
> No apache2 on my computer, only '/usr/lib/apache' which contains only .so
> files.
>

there's no /etc/apache either?
From: e-letter on
On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
> On Wed, Aug 18, 2010 at 7:10 AM, e-letter <inpost(a)gmail.com> wrote:
>
>> On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
>> > What are the actual file permissions when you run ls -o?
>> >
>> root
>>
>
> What's the entire output of ls -o?
>
[root(a)localhost html]# ls -o *
-rwxr-xr-x 1 root 182 2010-08-18 11:33 test.php*

addon-modules:
total 4
lrwxrwxrwx 1 root 51 2010-01-11 22:03 apache-mod_svn_view-0.1.0 ->
.../../../../usr/share/doc/apache-mod_svn_view-0.1.0
lrwxrwxrwx 1 root 52 2010-01-11 22:03 apache-mod_transform-0.6.0 ->
.../../../../usr/share/doc/apache-mod_transform-0.6.0
-rw-r--r-- 1 root 115 2007-09-07 21:47 HOWTO_get_modules.html

>
>> >
>> > Do you know if PHP is installed as an apache mod or cgi? Also you might
>> > check what user apache is running as.
>> >
>> No. How to verify?
>>
>> > possibly...
>> > $ vi /etc/apache2/envvars
>> >
>> No apache2 on my computer, only '/usr/lib/apache' which contains only .so
>> files.
>>
>
> there's no /etc/apache either?
>
No
From: Ashley Sheridan on
On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote:

> On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
> > What are the actual file permissions when you run ls -o?
> >
> root
> >
> > Do you know if PHP is installed as an apache mod or cgi? Also you might
> > check what user apache is running as.
> >
> No. How to verify?
>
> > possibly...
> > $ vi /etc/apache2/envvars
> >
> No apache2 on my computer, only '/usr/lib/apache' which contains only .so files.
>


ls -o doesn't give one word answers, so again, what is the output of an
ls -o call in your shell?

I assume that root is the owner of the file here, and the fact that
you're getting some output from it seems to suggest that at least read
permissions are available for group and other, but you should check to
see if the permissions are indeed something like 664 (-rw-rw-r--)

What OS are you using? I'm assuming a Linux distro of some kind here,
but it could also be another Unix variant. Have you tried using the
package manager within the distro (if it is Linux) to install PHP and
Apache together? That makes it a lot easier to get up and running with a
decent configuration, especially if you're unfamiliar with the more
complicated details.

Thanks,
Ash
http://www.ashleysheridan.co.uk


From: e-letter on
On 18/08/2010, Ashley Sheridan <ash(a)ashleysheridan.co.uk> wrote:
> On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote:
>
>> On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
>> > What are the actual file permissions when you run ls -o?
>> >
>> root
>> >
>> > Do you know if PHP is installed as an apache mod or cgi? Also you might
>> > check what user apache is running as.
>> >
>> No. How to verify?
>>
>> > possibly...
>> > $ vi /etc/apache2/envvars
>> >
>> No apache2 on my computer, only '/usr/lib/apache' which contains only .so
>> files.
>>
>
>
> ls -o doesn't give one word answers, so again, what is the output of an
> ls -o call in your shell?
>
> I assume that root is the owner of the file here, and the fact that
> you're getting some output from it seems to suggest that at least read
> permissions are available for group and other, but you should check to
> see if the permissions are indeed something like 664 (-rw-rw-r--)
>
> What OS are you using? I'm assuming a Linux distro of some kind here,
> but it could also be another Unix variant. Have you tried using the
> package manager within the distro (if it is Linux) to install PHP and
> Apache together? That makes it a lot easier to get up and running with a
> decent configuration, especially if you're unfamiliar with the more
> complicated details.
>
I used urpmi with mandriva
From: "Bob McConnell" on
From: e-letter

> On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
>> On Wed, Aug 18, 2010 at 7:10 AM, e-letter <inpost(a)gmail.com> wrote:
>>
>>> On 18/08/2010, chris h <chris404(a)gmail.com> wrote:
>>> > What are the actual file permissions when you run ls -o?
>>> >
>>> root
>>>
>>
>> What's the entire output of ls -o?
>>
> [root(a)localhost html]# ls -o *
> -rwxr-xr-x 1 root 182 2010-08-18 11:33 test.php*
>
> addon-modules:
> total 4
> lrwxrwxrwx 1 root 51 2010-01-11 22:03 apache-mod_svn_view-0.1.0 ->
> ../../../../usr/share/doc/apache-mod_svn_view-0.1.0
> lrwxrwxrwx 1 root 52 2010-01-11 22:03 apache-mod_transform-0.6.0 ->
> ../../../../usr/share/doc/apache-mod_transform-0.6.0
> -rw-r--r-- 1 root 115 2007-09-07 21:47 HOWTO_get_modules.html
>
>>
>>> >
>>> > Do you know if PHP is installed as an apache mod or cgi? Also you
might
>>> > check what user apache is running as.
>>> >
>>> No. How to verify?
>>>
>>> > possibly...
>>> > $ vi /etc/apache2/envvars
>>> >
>>> No apache2 on my computer, only '/usr/lib/apache' which contains
only .so
>>> files.
>>>
>>
>> there's no /etc/apache either?
>>
> No

Some distributions have really screwed up the locations of various
applications. This is compounded by the decision to rename the Apache 2
directories to httpd. Look for /etc/httpd, /home/httpd or
/usr/lib/httpd. If worse comes to worst, try

ps ax | grep httpd

to see if you can find the path from the original start up in the init
process.

Bob McConnell