TinyPortal

Development => Support => Installation => Topic started by: Corrupter on February 13, 2008, 12:49:37 AM

Title: error at install, workaround,
Post by: Corrupter on February 13, 2008, 12:49:37 AM
hey guys i was getting this error and didnt quite know why.

Fatal error: require() [function.require]: Failed opening required '/var/www/Packages/temp/./tp_install.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/Sources/Packages.php on line 552


as it turns out, if it has something to do with the permissions with either packages.php and/or the /var/www/Packages/temp/ directory.  i manually created the /temp directory and extracted the tp09XX.zip into it and manually set the permissions, then hit the back button to where it says tests successful and hit install again and it works just fine.

One thing though if anyone knows the specific cause and how to fix i'd love to know =)
Title: Re: error at install, workaround,
Post by: IchBin on February 13, 2008, 12:55:30 AM
That would be a server side issue. Not allowing the execution of creating the folder and unzipping the contents etc.
Title: Re: error at install, workaround,
Post by: Corrupter on February 15, 2008, 06:57:54 PM
thats what i thought too, but the folder that the forum is working in (www) is currently set to 775 which i thought was more the sufficient to allow the forum to do its thing.  i set it to 775 as this is just a local directory on a local machine on the net that i built to work on my php editing skills for some websites im working on in a live enviroment.

Thoughts on what i did wrong that it causes this problem?
Title: Re: error at install, workaround,
Post by: IchBin on February 15, 2008, 07:40:41 PM
It doesn't matter what you set the permissions to. If PHP doesn't have the permission to create a directory and write to it you'll run into this problem. I'm not sure what causes this, so you'll have to seek help on a server forum or something.
Title: Re: error at install, workaround,
Post by: Lucutious on April 17, 2008, 05:52:56 PM
In Ubuntu, to fix this, simply do the following:

chown www-data /var/www -R

(That gives php permission to the /var/www directory, and all it's subdirectories)