Jump to content

Recommended Posts

Posted (edited)
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/***/:/usr/lib/php:/usr/local/lib/php:/usr/local/sqmail:/tmp) in /home/***/public_html/lib/init/initlib.php on line 101

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/***/public_html/lib/init/initlib.php:101) in /home/***/public_html/tiki-setup_base.php on line 278

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/***/public_html/lib/init/initlib.php:101) in /home/***/public_html/tiki-setup_base.php on line 278

header already sent

 

That's what I got when trying to install TikiWiki. Somebody screwed up the installation script.

Edited by TCH-Thomas
Removed cpanelusername. Please do not post such info in the forum.
Posted

As a side note, I'm pretty sure this problem is not a Fantastico issue. I installed TikiWiki manually and had the same problem. But the helpdesk was able to help me.

Posted
As a side note, I'm pretty sure this problem is not a Fantastico issue. I installed TikiWiki manually and had the same problem. But the helpdesk was able to help me.

 

From the TikiWiki forum I was informed that TikiWiki requires access to the /temp folder. Is this a permissions problem?

Posted

From memory on that error, you need to define where the 'tmp' folder is.

 

In lib/init/initlib.php ( within the tikiwiki installed directory ) add the line;

 

>$tempdir = "/tmp";

 

Near the bottom of that file to define the tmp directory ( so that ....

 

>function tempdir() {

	function tempdir() {
			static $tempdir;
			if (!$tempdir) {
					$tempfile = tempnam(false,'');
					$tempdir = dirname($tempfile);
					@unlink($tempfile);
			}
			return $tempdir;
	}

becomes ......

 

>		function tempdir() {
			static $tempdir;
			$tempdir = "/tmp";
			if (!$tempdir) {
					$tempfile = tempnam(false,'');
					$tempdir = dirname($tempfile);
					@unlink($tempfile);
			}
			return $tempdir;
	}

 

Or open a ticket at the help desk and ask us to do it for you :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...