How to install WordPress in localhost
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 [...]
mysql_config: Check how MySql is configured
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 [...]
How to Configure MySql with PHP and Apache?
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 [...]
MySql Installation: Problems Past Installation
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 [...]
How to configure PHP and Apache in Linux and Mac?
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 [...]