Jump to content


Photo

Unable to get X2CRM working with XAMPP

XAMPP PHP MySQL localhost

  • Please log in to reply
3 replies to this topic

#1 csharp

csharp

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 06 May 2018 - 03:09 PM

Hello, I'm new to this forum and I'm also new to X2CRM.  In fact I first heard about X2CRM for the first time a few days ago.

 

What I'm trying to do with little success is to install X2CRM on XAMPP so that I can get some experience with it on localhost, but so far all attempts to complete the installation have failed.

 

I have Windows 10 and downloaded the file X2CRM-master.zip from the Github link at https://www.x2crm.com/download/. I then unzipped it and copied the folder x2engine into the htdocs folder in XAMPP using the video at the link https://www.youtube....v=6pBHkZM9C8I.  For convenience I renamed the folder to x2crm, then copied the MySQL script:

 

DROP DATABASE IF EXISTS `x2crm`;
CREATE DATABASE `x2crm`
DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

CREATE USER IF NOT EXISTS 'x2crmowner'@'localhost';
CREATE USER IF NOT EXISTS 'x2crmowner'@'127.0.0.1';
CREATE USER IF NOT EXISTS 'x2crmowner'@'::1';

SET PASSWORD
FOR 'x2crmowner'@'localhost' = PASSWORD('test');
SET PASSWORD
FOR 'x2crmowner'@'127.0.0.1' = PASSWORD('test');
SET PASSWORD
FOR 'x2crmowner'@'::1' = PASSWORD('test');

GRANT ALL PRIVILEGES ON
`x2crm`.* TO 'x2crmowner'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON
`x2crm`.* TO 'x2crmowner'@'127.0.0.1' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON
`x2crm`.* TO 'x2crmowner'@'::1' WITH GRANT OPTION;

 

to a folder.  This was taken from the video and a few changes were made.  Some of the commands are redundant, but anyway, after a number of attempts I managed to import and execute the commands from http://localhost/phpmyadmin/and an empty database was created.

 

On going to http://localhost/x2crm/and entering the details as given in the video, with some appropriate changes, then on attempting to install, I just get the following error messages:

 

Notice: unserialize(): Unexpected end of serialized data in C:\xampp\htdocs\x2crm\framework\caching\CCache.php on line 108

Notice: unserialize(): Error at offset 0 of 1 bytes in C:\xampp\htdocs\x2crm\framework\caching\CCache.php on line 108

Fatal error: Declaration of X2WebUser::checkAccess($operation, $params = Array) must be compatible with CWebUser::checkAccess($operation, $params = Array, $allowCaching = true) in C:\xampp\htdocs\x2crm\protected\components\X2WebUser.php on line 38

 

I Googled this and saw a fix, which fixed this but this just created another error message and the database was not changed.  There is some incompatibility, bug or wrong installation somewhere, so would most appreciate getting this fixed so that the installation can be completed.

 

This was all done with the most recent version of XAMPP which I just installed.  It has PHP Version 7.2.4, which is the latest.  Should I go to an earlier version, and if so which one, and how is this done?

 

In fact I have a previous installation of XAMPP and got the database tables created but also had problems with the installation, and unfortunately that version won't now run and comes up with the message: "Error: Apache shutdown unexpectedly...." even if I close down the more recent version.

 

A lot of time has been spent on this and would be most grateful to get this resolved as soon as possible, so many thanks in advance.
 



#2 Attila

Attila

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts
  • LocationJohannesburg, South Africa

Posted 07 May 2018 - 12:47 AM

Save yourself a lot of hassles,  download the Bitnami version of X2  precompiled with everything you need ... https://bitnami.com/stack/x2engine


Never allow waiting to become a habit. Live your dreams & take risks. Life is happening NOW !


#3 csharp

csharp

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 07 May 2018 - 12:54 PM

OK, many thanks indeed, I did this from the start menu in Windows.

 

It opened http://127.0.0.1, which of course is alias for localhost, in Internet Explorer by default.  As I had already specified "user" as user and "test" as password, I used these to logon, then it came up with a 500 server error.

 

I tried this again with Firefox, and it works.  I don't know what the problem was, but if it's working. I'll leave it at that.

 

Thanks again for your help.  For some reason there is an incompatibility with XAMPP, and as it's now working, I will discard the files I put in XAMPP.



#4 Attila

Attila

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts
  • LocationJohannesburg, South Africa

Posted 07 May 2018 - 09:32 PM

I dont know what went wrong, but the last thing you want to do is start developing on an iffy platform. that  has incompatibility problems. 

 

If this were/is a live environment then Bitnami is the way to go, Its tried, tested and has a support base for X2 instances.     


Never allow waiting to become a habit. Live your dreams & take risks. Life is happening NOW !






Also tagged with one or more of these keywords: XAMPP, PHP, MySQL, localhost

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users