Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

installation problems v2.1.0


Go to End


5 Posts   4489 Views

Avatar
joco

9 Posts

4 October 2007 at 10:14am

i tried installing but got the following error after pressing the 'build the site' button:

---------------------
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/htdocs/mysite/:/tmp/:/var/tmp/:/var/lib/php5) in /var/www/htdocs/mysite/public/ss/install.php on line 338

Warning: unlink() [function.unlink]: No such file or directory in /var/www/htdocs/mysite/public/ss/install.php on line 339

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/htdocs/mysite/public/ss/install.php:338) in /var/www/htdocs/mysite/public/ss/install.php on line 516

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/htdocs/mysite/public/ss/install.php:338) in /var/www/htdocs/mysite/public/ss/install.php on line 516
Installing SilverStripe...

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...
# Building database schema...
---------------------

after this appeared nothing happened. going back to the index gave me this:

---------------------
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Avatar
joco

9 Posts

5 October 2007 at 3:50am

Edited: 05/10/2007 4:06am

i'm running MySQL 5.0.32-Debian_7etch1-log , PHP version 5.2.0-8+etch7

the install.php page tells me evrything is in order, except, at the top, it says:

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/htdocs/mysite/:/tmp/:/var/tmp/:/var/lib/php5) in /var/www/htdocs/mysite/public/ss/install.php on line 338

Warning: unlink() [function.unlink]: No such file or directory in /var/www/htdocs/mysite/public/ss/install.php on line 339

Avatar
siulun

14 Posts

5 October 2007 at 6:44am

look up open_basedir restriction in effect on google and you'll find a lot to solve your problem.

I think /tmp is the folder SS use to build its "cache", you may be able to resolve the problem if you create a folder in your httpd root directory called "silverstripe-cache" so that it'll use that directory instead.

looks as if you might not have access to the /tmp directory.

Avatar
joco

9 Posts

5 October 2007 at 8:17pm

thanks for your answer. i did create a "silverstripe-cache"-folder (the installer told me to) but i'll look up the open_basedir stuff on google when i have the time.

cheerio

Avatar
joco

9 Posts

6 October 2007 at 8:42pm

can the following also be attributed to the open_basedir restriction?:

Warning: unlink() [function.unlink]: No such file or directory in /var/www/htdocs/mysite/public/ss/install.php on line 339