![]() Raymond Lagonda said this on Novemat 3:29 pm | Reply This can be solved by either commenting the ‘encoding’ in your database.php (the default one is UTF8) or set the encoding for mssql driver for php using the right constant. ![]() The connection is failing due to the PDO try to pass invalid argument for encoding attribute. Your last bit actually need some correction though. Srinu Chilukuri said this on Octoat 9:02 am | Reply Nice article but iwant to connect from linux(ubuntu 12.04) In the database.php your configuration should be similar to this.ħ Responses to “CakePHP with mssql or SQLServer” I opened Sqlserver.php file with notepad++ and inside the public function connect() ”,ħ. In my case CakePHP was still not connecting, i went into the \lib\Cake\Model\Datasource\Database\Sqlserver.php. To test if configuration is working or not, i have a simple code to do the test.Ħ. Load the libraries below in your php.ini which can be located in your ĥ. Extract “Microsoft Drivers 3.0 for PHP for SQL Server to the” to the default folder where it contains all the PHP libraries (DLL files) e.g ģ. Install the “Microsoft® SQL Server® 2012 Native Client”Ģ. Microsoft Drivers 3.0 for PHP for SQL Serverġ. ![]() Microsoft® SQL Server® 2012 Native Client So if you compare this setup with Server2Go where you still need to edit the pms_config.ini to prevent shutdown issue and to include the :4001 when accessing localhost, XAMPP is “cleaner” and straightforward.Connecting Cakephp to Mssql/Sqlserver’ database on windows machine using Xampp v3.1.0.3.1.0Īfter successfully installing xampp on my Windows 7 Professional, Dell XPS L521X 67 bit machine, connection did not establish successful, below is the setting up and configuration procedure.Īpache VersionĚpache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 html (HTML5) file there and it’ll show at your localhost (127.0.0.1). The public directory is under htdocs – the frontpage that is showing up at 127.0.0.1 is the index.php at htdocs directory. Your local web server is up and running! Just start up your (any) browser and you can access your front page at “Allow access” (for Apache and MySQL) if your firewall pops up any message.ĭone. Copy/upload the entire xampp folder to your USB flash drive (I’m using the 8GB USB2.0 flash drive which is more than adequate to be a local web server).ĭouble-click xampp-control.exe and start both Apache and MySQL. zip file to avoid any issue of downloading/installing. So, let’s start to step by step procedure to transform your USB flash drive to a versatile and portable localhost.įirst, of course, download XAMPP Portable from and click on the highlighted “ here” link to see all the versions of XAMPP on SourceForge :ĭownload the xampp-portable. Hence, in terms of sustainability and support, I’m now more leaned toward XAMPP.Īs the main objective is to make the USB flash drive to act like a portable web server, I’ll be using the more lightweight version XAMPP Lite – to be more exact, XAMPP Lite seems to be phased out. One major put off, at least for me, is that on Server2Go’s Features tab, compatible browsers include IE 6 & 7 – c’mon, that was like several years back. XAMPP’s website is also more professional while Server2Go frontpage looks kind of amateur. By Apache Friends, XAMPP is more established and maintained. A quick question – if you want me to decide and can only use one to be my local web server solution, then the quick answer and selection will be … XAMPP. Now, I’ll show you another alternative to make your USB flash drive to be a portable web server with the more established (and rather widely used) XAMPP.īefore that, let me make a quick comparison on the pros and cons between XAMPP (Portable) and Server2Go. In previous post, I’ve shown you how to make the USB flash drive to be a local portable web server with Server2Go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |