Jump to:

1382 Posts in 491 Topics by 521 members

Themes

SilverStripe Forums » Themes » Cannot find _config.php in mysite folder

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2774 Views
  • Tuler
    Avatar
    Community Member
    9 Posts

    Cannot find _config.php in mysite folder Link to this post

    I recently uploaded a new theme to my server and the documentation says to do the following:

    Install

    1.
    Simply unpack the contents of the zip file into the /themes directory in your SilverStripe installation.
    2.
    Change to the theme by putting the following line in your ./mysite/_config.php:

    SSViewer::set_theme("themename");

    3.
    Visit your homepage, ensuring you flush the cache (append ?flush=1 to the URL).

    The problem I'm having is that I cannot find the _config.php file in ./mysite/

    I'm using version 2.2.3. How do I switch the theme?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Cannot find _config.php in mysite folder Link to this post

    Did you install with the tutorial option instead?. If so then the _config file is in /tutorial/. Move this file to /mysite/ , change the $project var in that file to 'mysite' then set your theme

  • sharkriver
    Avatar
    Community Member
    2 Posts

    Re: Cannot find _config.php in mysite folder Link to this post

    I cannot seem to find it either! Where exactly is this file supposed to be? Within the theme files? or within the installation files? I searched and dont have it.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Cannot find _config.php in mysite folder Link to this post

    If you have run through the installer it should have created it in /mysite/ or the /tutorial/ folder depending on which option you installed with. It does not come as a file in the install package - it is created in the web installer.

    If you have not installed it via the web based installer you will not have the file. If you have installed and your site works then it should be in the mysite/ or tutorial/ though some hosting packages which allow you to install SS via their dashboard view may store the file elsewhere.

  • sharkriver
    Avatar
    Community Member
    2 Posts

    Re: Cannot find _config.php in mysite folder Link to this post

    Where can i find information on this web based installer? I ran thru most of the docs and didnt not anything on this? Please point me to some docs so I can install this!

  • Tuler
    Avatar
    Community Member
    9 Posts

    Re: Cannot find _config.php in mysite folder Link to this post

    Thanks for the response. I installed this application through a site called http://759domains.com. The file was placed in the Tutorial directory.

  • nzrecruit
    Avatar
    Community Member
    1 Post

    Re: Cannot find _config.php in mysite folder Link to this post

    HI
    I also dont have the _config.php file in mysite folder or tutorial folder

    I only have one in the cms folder and authiD folder.

    With my site up and running, is it possible to download this file and copy it to the mysite folder ?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts
    2774 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.