Install of 2.0.5 "Fails"

I’m trying to upgrade my 1.3.5 SP2 site to 2.0.5. My 1st step is to install 2.0.5 into a directory I’ve called cscart2.



I went through the install steps and all seemed to succeed, but when I go to [url]http://www.domainname.com/cscart2[/url] it brings up a page not found error. And when I go to [url]http://www.domainname.com/cscart2/index.php[/url], it takes me to the home page of my 1.3.5 site in the root directory and I’m not sure why.



Any ideas on this one? How do I get to the home page of the 2.0.5 site inside the cscart2 directory?

ok, I see that under the “MySQL server host” field during install, I left the word “localhost” in that box. And since I installed this on the server, I guess I was supposed to put my domain name (completely unclear in the directions)?



So what do I do now? Is there a way to make this change without reinstalling everything?!

Just a quick thought, however, considering you are not installing 2.05 in the root, I believe you may to to tweak a setting in your config file to reflect this.

[quote name=‘Stuck’]Just a quick thought, however, considering you are not installing 2.05 in the root, I believe you may to to tweak a setting in your config file to reflect this.[/QUOTE]



That only applies once I’m ready to move version 2 to the root directory. Until then, I should be able to access it in the cscart2 directory without any changes.



I think this is related to the fact that I left the word localhost as the MYSQL server host, but I’m not sure. And if this is the problem, I’m not sure how to fix it.

[QUOTE]I think this is related to the fact that I left the word localhost as the MYSQL server host[/QUOTE]



I am not yet an “expert” with CS_Cart, however, no doubt this is a problem! :wink:



Try this, FTP into your site, then open your config.local.php file. Then within the section “Database Connection Options” enter your corrected db_host name.

[quote name=‘Stuck’]I am not yet an “expert” with CS_Cart, however, no doubt this is a problem! :wink:



Try this, FTP into your site, then open your config.local.php file. Then within the section “Database Connection Options” enter your corrected db_host name.[/QUOTE]



Thanks, I was wondering where this setting was located. But after reading further in the install instructions, it says that “localhost” is often the name that needs to be used, even on the server. So I don’t guess that this is the problem.



Now, on to plan B.

No problem, glad to help if I can.



Our DB hostname is like this “mysql.yourdomainname.com



So you will want to verify this important detail, ya know.

[quote name=‘knoxbury’]Thanks, I was wondering where this setting was located. But after reading further in the install instructions, it says that “localhost” is often the name that needs to be used, even on the server. So I don’t guess that this is the problem.



Now, on to plan B.[/QUOTE]

Check with your host to find out the name of your DB server (very often “localhost”). or you can check the config.php file in your previous installation directory to see what it is.



Did you create a new database for this installation or are you using your existing database?



Bob

I just checked our 1.3.5 install (which I should have done in the first place) and it says “localhost”. So I would imagine this is the same for 2.0.5.



So now, what could be causing the cscart2 directory to not show the new version install?

[quote]Did you create a new database for this installation or are you using your existing database?[/quote]



I created a new database.

Is it possible this could have to do with the base href tag? If so, which file is that located in for 2.0.5?

Verify the directory paths and database connection information in the config.local.php.



Also check your Rewrite base in the .htaccess file.



Bob

[quote name=‘jobosales’]

Also check your Rewrite base in the .htaccess file.

[/QUOTE]

Here is the code from my .htaccess file. Again, I installed in the cscart2 directory. So does this code look ok?

```php DirectoryIndex index.html index.php





RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is http://www.yourcompany.com/store/cart

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]



RewriteCond %{REQUEST_FILENAME} ./catalog/.

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{REQUEST_FILENAME}/index.html !-f

RewriteRule . index.php?sef_rewrite=1 [L,QSA]





```

Try changing “RewriteBase /” to “RewriteBase /cscart2” and let us know what happens.



Bob

[quote name=‘knoxbury’]Here is the code from my .htaccess file. Again, I installed in the cscart2 directory. So does this code look ok?

```php DirectoryIndex index.html index.php





RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is http://www.yourcompany.com/store/cart

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /[COLOR=“Blue”]cscart2 <--------------------------[/COLOR]

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]



RewriteCond %{REQUEST_FILENAME} ./catalog/.

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{REQUEST_FILENAME}/index.html !-f

RewriteRule . index.php?sef_rewrite=1 [L,QSA]





```[/QUOTE]



I believe this only affects SEO though?

[quote name=‘jobosales’]Try changing “RewriteBase /” to “RewriteBase /cscart2” and let us know what happens.

[/QUOTE]

I did that, but I still get the same results. It shows me my 1.3.5 install in the root.

ToolOutfitters is right - that should only affect the rewrites.



Take a look at theses lines in your congif.local.php file. They should look like the following (with your domain substituted:

// Host and directory where software is installed on no-secure server
$config['http_host'] = 'www.domainname.com';
$config['http_path'] = '/cscart2';

// Host and directory where software is installed on secure server
$config['https_host'] = 'www.domainname.com';
$config['https_path'] = '/cscart2';




Bob

the upgrade is only for 1.3.5sp4 to 2.04…

[quote name=‘snorocket’]the upgrade is only for 1.3.5sp4 to 2.04…[/QUOTE]

That has nothing to do with whether or not I can install a blank copy of 2.0.5 into a separate directory. The upgrade you’re referrinig to is the database. But I should be able to install a new version 2 to any directory I want. The problem is that it keeps going to the root. But it would do this even if I was running a wordpress site in the root.

[quote name=‘jobosales’]ToolOutfitters is right - that should only affect the rewrites.



Take a look at theses lines in your congif.local.php file. They should look like the following (with your domain substituted:

// Host and directory where software is installed on no-secure server
$config['http_host'] = 'www.domainname.com';
$config['http_path'] = '/cscart2';

// Host and directory where software is installed on secure server
$config['https_host'] = 'www.domainname.com';
$config['https_path'] = '/cscart2';


[/QUOTE]

I confirmed that my config.local.php file already looks the way you recommend.