Error: Table “user” does not have a primary key. Solution: The crud command requires primary key to be defined in your tables. If you are working with legacy tables and can’t specify primary key, you can declare it in primaryKey() method of your model class. override method primaryKey in protected/models/User.php [php] public function primaryKey() { …
April 2012 archive
Permanent link to this article: https://blog.openshell.in/2012/04/yii-primary-key-error/
Apr 15
APC extension Enable in apache
To enable APC extension on Ubuntu, Use the following command sudo apt-get install php-apc To enalbe APC extension on Windows, 1) Go to http://downloads.php.net/pierre/ 2) Download php_apc-.zip 3) Copy php_apc.dll to /ext folder 4) In your php.ini, make sure you have: extension=php_apc.dll 5) Restart your server.
Permanent link to this article: https://blog.openshell.in/2012/04/apc-extension-enable-in-apache/
Apr 03
How To Install memcached with memcache PHP Extension on Ubuntu
memcached and the PHP5 memcache module are available as packages, so we can install them as follows: sudo apt-get install memcached php5-memcache
Permanent link to this article: https://blog.openshell.in/2012/04/how-to-install-memcached-with-memcache-php-extension-on-ubuntu/
Apr 03
Enable Sqlite in PHP on Apache
To enable SQLite on Windows/Apache/PHP setup, Uncomment the following lines in the php.ini file and restart Apache: [code] extension=php_pdo.dll extension=php_pdo_sqlite.dll [/code] To enable SQLite on Ubuntu, Use the following command [code] sudo apt-get install sqlite php5-sqlite sudo apt-get install php-pear php-apc php5-curl [/code]
Permanent link to this article: https://blog.openshell.in/2012/04/enable-sqlite-in-php-on-apache/