How to install apache in Ubuntu?
Apache can be installed in Linux using source. It can be easily installed in Ubuntu using the following command $ sudo apt-get install apache2 But after installation, you can verify that in the browser. Enter http://localhost/. If everything is fine, the page can be displayed with no connection errors. To start/restart apache $ sudo /etc/init.d/apache2 [...]
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 [...]
How to Install drupal in localhost
Drupal is one of the best content management software for web site development. But you can install drupal in your local machines and test its working. To see how it works, follow the steps given below. You must have mysql,php and apache installed in your machine. Create a database for drupal usage in mysql Download [...]
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 [...]
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 [...]
How to install Apache in Mac and Linux?
Installing Apache from sources involves the following steps Download Apache. Make sure that you download the source (stable version) The downloaded file will be something like this httpd-x.x.x.tar.gz (where x.x.x is the Apache version) Now execute the following commands ./configure –prefix=/usr/local/apache2 make sudo make install If everything is installed fine, run the following command, /usr/local/apache2/bin/apachectl [...]