Forum

Thread tagged as: Question, Installation, Configuration

dev to live

its been a while since a put a site live. I currently have a site all done and dusted on a dev.address now i want to put in on the live address.

I need to change the config ?

the database needs moving?

config currently looks like this

define("PERCH_DB_USERNAME", 'griff_dan');
define("PERCH_DB_PASSWORD", '******');
define("PERCH_DB_SERVER", "localhost");
define("PERCH_DB_DATABASE", "griff_data");
define("PERCH_DB_PREFIX", "perch2_");
Daniel Hurley

Daniel Hurley 0 points

  • 3 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

thank you very much, support on a sunday too! I realise that is a very good informative link. One thing I am wondering though is my dev. address is just a dev.address in a 'dev.' folder in the site root folder of where the live site is. My database is on the same server linked to the site. I'm struggling to think how the database is not already in the correct place

Drew McLellan

Drew McLellan 2638 points
Perch Support

If the database is already where you need it then no, no point in moving it.

Thanks Drew - see dev and live addresses here:

dev.griffbuild.co.nz

www.griffbuild.co.nz

Do I have a template in wrong location situation ?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What problem are you seeing? I don't think you've described the issue we're trying to solve.

There are parts of the live site above, that are not appearing as in the dev site above.

I'm not sure if this is the pages not linking to perch as it is in dev, or not linking to the database or not linking to css.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Your live site is not parsing PHP tags - try renaming your index.html to index.php

Thanks Drew, it seems that is the issue

the dev folder AND the live folder both have the rolling htaccess file in their folders:

<IfModule mod_rewrite.c>
RewriteEngine on

# Redirect to PHP if it exists.
# e.g. example.com/foo will display the contents of example.com/foo.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]

</IfModule>

I wonder why this wouldn't work for the live site as it does the dev site...

Drew McLellan

Drew McLellan 2638 points
Perch Support

You should ask your host if you've got issues configuring the web server.

thanks Drew the host helped out now all good