SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1 , 2 , 3
Topic Multiple Shops on one system 6398 Views

Re: Multiple Shops on one system

29 November 2011 at 7:01pm

Dear Sebastian, Dear Ramon,

the system is showing the silverstripe installation screen, telling that it is just updating .htaccess, _config.... But nothing happens. I had a look to the database and saw that there have been no tables created. As this is the first time I want to install a second silverstripe/silvercart system on the same machine I wonder whether it is possible to have multiple systems running on one machine.

Cheers,

Gerhard

Re: Multiple Shops on one system

29 November 2011 at 7:12pm

Hi Gerhard,

we have dozens of simultaneous SilverCart and SilverStripe installations on our Servers, I do not think this is the problem. And even if, we need to catch the error message, everything else is guessing and therefore futile. The databases are not created because the installer does not get this far as an error occurs.

More on the PHP error logging:
http://php.net/manual/en/function.error-reporting.php and http://php.net/manual/en/ref.errorfunc.php

You can activate logging on Apache in the vhosts.conf (VirtualHost section)

ErrorLog /var/www/yourproject/website/log/error.log
LogLevel warn
CustomLog /var/www/yourproject/website/log/access.log combined
php_admin_value error_log /var/www/pixeltricks/website/log/php.log

Can you tell me how your directory outline is?

Is it like this:
/var/www/silvercart1.0/...
/var/www/silvercart1.2/...

Is there an OpCode cache like APC installed?
Which package did you try to install? The full package incl. SilverStripe, SilverCart and all modules?

Cheers
Ramon

Re: Multiple Shops on one system

30 November 2011 at 8:48am

Hi Ramon,

first of all I want to thank you for the support.

I just set up the error logging. In the php-error-log there is the following :
PHP Warning: $project isn´t set in /var/www/vhosts/.../silverstripe/sapphire/core/ManifestBuilder.php on line 268.

PHP Fatal error: Class ´Page´ not found in /var/www/vhosts/.../silverstripe/silvercart/code/pages/SilvercartProductGroupHolder.php on line 34.

What to do ?

Cheers,

Gerhard

Re: Multiple Shops on one system

30 November 2011 at 8:57am

I just forgot to tell that I try to install the full package.

Re: Multiple Shops on one system

30 November 2011 at 9:17am

Good morning Gerhard,

according to the errors it seems that your mysite directory is missing. Silverstripe needs at least a _config.php file in that directory with a $project variable containing your project directory's name.

I just installed the full package from the download site and everything works out of the box. Perhaps your mysite directory went amiss while copying something?

Regards,
Sascha

Re: Multiple Shops on one system

30 November 2011 at 9:52am

Hi Sascha,

thanks a lot for this hint. I will doublecheck it asap.

Cheers,

Gerhard

Re: Multiple Shops on one system

30 November 2011 at 10:20am

Hi Sascha,

now things become even more intransparent. I wanted to restart the installation and I got a 403 Forbidden message from the browser !

Cheers,

Gerhard

Re: Multiple Shops on one system

30 November 2011 at 10:40am

Hello Gerhard,

something seems to have gone wrong there. A 403 error is usually caused by access restrictions due to directives in a .htaccess file.
Without knowing more about the current directory structure of your installation it would be a wild guessing on my side now.
I'd suggest to delete the second installation directory and any related databases completely and start anew. After that just copy all files from the silvercart full package into the second installation directory (making sure that hidden files get copied, too) and start the installation via the browser.

Cheers,
Sascha