Installing Apache, MySQL, PHP in CentOS 5.5 on Rackspace Cloud

On June 9, 2011, in CentOS, Concentrate, Imagine, LAMP, Launch, Linux, Mysql, Observe, Open Source, PHP, Rackspace Cloud, Tricks, by Sandeep Verma

Hits: 1864  Most of cloud users prefer Rackspace Cloud for its better service and cost effectiveness… All commands are performed as root to install Apache, MySQL, PHP in CentOS 5.5 Server on Rackspace Cloud. Install Apache # sudo yum install httpd mod_ssl Configure ServerName # sudo /etc/init.d/httpd start Remove Error Starting httpd: httpd: Could not reliably [...]

Tagged with:  

PHP ORM – Create select box with mysql set or enum

On September 5, 2010, in CakePHP, LAMP, Mysql, Open Source, PHP, Tips, Web Application, by Sandeep Verma

Hits: 854  PHP have rich set of functions to solve real time problems in programming and web development.. thanks to Rasmus Lerdorf eval — Evaluate a string as PHP code A SET datatype can hold any number of strings from a predefined list of strings. The ENUM datatype restricts to a single member of the set [...]

Upload Large Database Table to Server

On May 30, 2010, in Fedora, LAMP, Mysql, Open Source, Tips, Tricks, by Sandeep Verma

Hits: 145  Hello Friends, Sometime we want to upload large database table to server but phpMyAdmin have limit to upload SQL large *.sql files.. When we create database table “svnlabs” from mysql admin server make 3 files “svnlabs.frm”, “svnlabs.MYD” and “svnlabs.MYI” These files are located at “/var/lib/mysql/svnlabs”.. we can check this location by phpinfo.php We can [...]

Installing XAMPP in Linux

On January 31, 2010, in Amazon Cloud EC2 S3, CentOS, Fedora, LAMP, Linux, Mysql, Open Source, PHP, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 471  What is XAMPP ? XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. LAMPP (XAMPP for Linux) is very easy to install and to use – just download, extract and start. Download XAMPP http://sourceforge.net/projects/xampp/files/XAMPP Linux/ Installing XAMPP in Linux Download XAMPP Latest version from the following link http://sourceforge.net/projects/xampp/files/XAMPP Linux Currently [...]

Better Solution for Filtering Bad Words in PHP

On December 19, 2009, in LAMP, Mysql, PHP, Tips, Tricks, by Sandeep Verma

Hits: 69  I was searching for filtering Bad Words from my site…… I have visited so many links on google but…. Here is my simple logic for filtering Bad Words from site or any search engine First you have to make a txt file “badwords.txt” or you can search from google Google Keyword: badwords + filetype:txt [...]

Mysql useful queries

On July 11, 2009, in LAMP, Mysql, Tips, Tricks, by Sandeep Verma

Hits: 61  Age: Select DATE_FORMAT (NOW(), ‘%Y’) – DATE_FORMAT(BirthDate, ‘%Y’) – (DATE_FORMAT(NOW(), ’00-%m-%d’) < DATE_FORMAT(BirthDate, ’00-%m-%d’)) AS Age From tbl_member where 1; Change collation: Alter table `tbl_student` convert to character set utf8 collate utf8_swedish_ci; Shift mysql column: ALTER TABLE tableName MODIFY column column_2 int AFTER column_1; Get video info with user info: SELECT `video_id` , `video_title` [...]

Lab Tips

On June 21, 2009, in Linux, Mysql, PHP, Tips, Tricks, Web Services, by Sandeep Verma

Hits: 824   Database: 1. Delete all information from databse related to, if deleting user or any content from CMS. 2. Use PDO, ADO, Pear, Zend etc. library to connect to database. 3. Take regular backup for database. 4. Use better naming convension. Folders: 1. Use better naming convension. 2. Take regular backup for folders. 3. [...]

Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...