You are here: Help needed, new installation, things don't work anymore. « All PHP « IT news, forums, messages
Help needed, new installation, things don't work anymore.

Posted by coolsti on 01/11/08 07:56

Hope someone can help, I cannot figure out what is going on.

I have applications running on a Centos 3.3 Linux machine using php
version 4.3.2-26 with apache version 2.0.46-54. I have it set up so that
all my php scripts are located away from the apache document
tree, and I use php require statements to read them in when needed. I
have done nothing special to set this up. I did set up /etc/php.ini to
set its auto_prepend_file to a file located also away from the
document tree.

Several months ago I set up a new machine using Centos 4.5, which uses
slightly newer apache and PHP versions, but PHP was still in the 4.3
something range, not PHP 5. I had no problems getting this machine up and
running just like my old machine.

Due to a hardisk failure on that machine, I had to do the excersize again
recently, installing Centos 4.5 and trying to get my php application up
and running. But something must have changed in the past months or I am
missing something. This is the problem:

I cannot get PHP and to read in my php scripts located away from the
document tree. I get "failed to open stream: Permission denied in ..."
and Fata error: Failed opening required 'myfilename here' (include
path='.:/usr/share/pear) error messages.

I tried to adjust my /etc/php.ini file to add the directories where my
scripts are located to the include_path directive but this seems to be
ignored. I then noticed that my auto_prepend_file is also being ignored.
So it seems as if /etc/php.ini is not the php initialization
file that is being used when I reastart my httpd.

Can someone help me? What am I missing here? If /etc/php.ini is not the
ini file for php I should be using, what is? And why suddenly can I not
get PHP to read in files that I have located away from the document tree?
This was no problem before.

Some info: on the centos 4.5 machine, php version is 4.3.9-3.22.9

Thanks for any help!
Steve, Denmark

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация