0

How to install WordPress in localhost

Posted by Joys of Programming on January 28, 2010 in PHP, Wordpress

WordPress is the most commonly used blogging platform. If you are a developer, you may wish to test a lot of things in your machine. It may be related to the development of themes and plugins. WordPress can be installed in your machine locally. You must have mysql,php and apache installed in your machine. Create [...]

Tags: , , , , , , , , , ,

 
0

mysql_config: Check how MySql is configured

Posted by Joys of Programming on January 10, 2010 in C/C++

mysql_config is a command line tool to find how your mysql is configured. It is useful to find out the information like the mysql socket. $ mysql_config Usage: ./mysql_config [OPTIONS] Options: –cflags         [-I/usr/local/mysql/include  -g -Os -arch i386 -fno-common   -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL] –include        [-I/usr/local/mysql/include] –libs           [-L/usr/local/mysql/lib -lmysqlclient -lz -lm     -lmygcc] –libs_r         [-L/usr/local/mysql/lib -lmysqlclient_r -lz [...]

Tags: , , ,

 
0

How to Configure MySql with PHP and Apache?

Posted by Joys of Programming on January 10, 2010 in PHP

After installing PHP, Apache and MySql, let’s see whether everything works fine Take a sample PHP-MySql program written in /usr/local/apache2/htdocs/mysql.php <?php $dbhost = ‘localhost’; $dbuser = ‘root’; $dbpass = ‘check’; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      (‘Error in connecting to mysql’); $dbname = ‘blog’; mysql_select_db($dbname); echo "Using database"; $result = mysql_query("create table author (id [...]

Tags: , , , ,

 
0

MySql Installation: Problems Past Installation

Posted by Joys of Programming on January 8, 2010 in PHP

After installing MySql from Sources, the next step is to create a user. A user “root” will be created and there is a default password associated with it. I was not aware of the default password. So I faced some problems when starting mysql. Let’s see some of the problems while working with mysql. Let’s [...]

Tags: , , ,

 
0

How to configure PHP and Apache in Linux and Mac?

Posted by Joys of Programming on January 7, 2010 in JavaScript, PHP

You have installed PHP and Apache (Check the installation procedure). But you are facing with the following problems You are not able to configure PHP and apache so that apache can execute the .php files Instead of executing the php files, the browser simply displays the php files like a text Instead of executing the [...]

Tags: , , , , ,

Copyright © 2009-2010 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.7.2 theme from BuyNowShop.com.