TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 202
  • Total: 202

error at install, workaround,

Started by Corrupter, February 13, 2008, 12:49:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Corrupter

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 =)

IchBin

That would be a server side issue. Not allowing the execution of creating the folder and unzipping the contents etc.

Corrupter

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?

IchBin

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.

Lucutious

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)

This website is proudly hosted on Crocweb Cloud Website Hosting.