l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 7: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2002 Dec 11 19:25

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] PHP Files Do Not Execute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] PHP Files Do Not Execute



--- Troy Arnold <troy-vox@zenux.net> wrote:
> On Wed, Dec 11, 2002 at 11:14:11AM -0800, Jim
> Angstadt wrote:
> > Hi All,
> > 
> > Another question from a PHP newbie.
> > 
> > Yesterday my RH 7.2 box crashed due to UPS
> problems (
> > that's another story.)
> > 
> > After a power up, all seemed OK.  This morning I
> > notice that some of the PHP scripts do not work. 
> > Others work fine.  All were working prior to the
> > crash.
> > 
> > For example, date.php, below, will act like text. 
> The
> > browser just displays the file.  It doesn't get
> > executed.
> > 
> > Another PHP file, in the same dir, with the same
> > permissions, works fine.
> > 
> > I scanned httpd.conf for any obvious corruption
> but
> > found none.
> > 
> > What should I look at now?
> 
> What would help is the output from your httpd error
> log when you access
> date.php.  httpd.conf should tell you where the
> error log is located.
> Try: tail -f /path/to/error.log
<snip>

Hi Troy, 
Thanks for the ideas.  You got me going again.  I
better explain as I might be on the wrong track again.

The httpd error_log did not have any pertinent
messages.  In fact, it did not record my attemps after
reading your message.  So,...there was nothing wrong
wrt apache.

Retrying the php files, I was surprised to see
date.php work and then not work.  I'm embarrassed to
explain that it worked when I keyed the address into
the browsers location window:
   http://localhost/~ja/php/date.php
but not when I navigated to the file.  In that case,
the loc bar showed:
   file:///home/ja/public_html/php/date.php

I was acting like I would with html files, sometimes
using the loc bar; sometimes using file, open,
navigate; sometimes using bookmarks.  I should have
picked up the differences much earlier.  More humility
training.

Re permissions, I'll try 644.  Been using 755.

Again, thanks for getting me to look at it from a
different angle.

Jim

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!