Loading...
 
Architecture / Installation

Architecture / Installation


Re: /tmp folder is not accessible, can't install

posts: 44 Canada

This problem is caused by the system temp directory configured being outside of the open_basedir limits. The way to solve this problem is (1) ask your system admin to change the open_basedir limits to include the system temp directory.

The other way is to hardcode a tmp directory that can be accessed into tiki-setup.php.

look for the text TikiInit::tempdir()
replace that text with "whatever_directory_with_open_basedir_setting/tmp"
e.g. "/home/(user_folder)/data/tmp" for the following example.

This server still has to be tested to check if file uploading is a problem, i.e. the setting of upload_tmp_dir could be problematic as well.


> Here is the messages:
>
> Warning: tempnam() function.tempnam: open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (/home/(user_folder)/data:.) in /usr/home/(user_folder)/data/www/(website)/lib/init/initlib.php on line 96
>
> Warning: session_start() function.session-start: Cannot send session cookie - headers already sent by (output started at /usr/home/(user_folder)/data/www/(website)/lib/init/initlib.php:96) in /usr/home/(user_folder)/data/www/(website)/tiki-setup_base.php on line 274
>
> Warning: session_start() function.session-start: Cannot send session cache limiter - headers already sent (output started at /usr/home/(user_folder)/data/www/(website)/lib/init/initlib.php:96) in /usr/home/(user_folder)/data/www/(website)/tiki-setup_base.php on line 274
>
> What can I do? Help please.
>
> Update: Tiki version is 1.9.7
>