Showing posts with label lamp. Show all posts
Showing posts with label lamp. Show all posts

How to install and configure Bugzilla on CentOS 7 step by step guide



install and configure Bugzilla on centos Linux |In this article we learn what is Bugzilla and how to install and configure Bugzilla on centos server.

                                How to install and configure Bugzilla on CentOS 7 step by step guide


What is Bugzilla?

Bugzilla is a free and open source bug following and programming testing tool which is written in perl and use mysql as a backend database. It is very useful tool to track the bug and change code of the application.

Pre-requisite to install Bugzilla on centos server

Before installing the Bugzilla first we have to ensure that all packages are up to date using the below command.
#yum update –y


After the we need to install EPEL repol by using the below command.
#yum install epel-release yum-utils –y

Installation LAMP stack

Before installing and setup Bugzilla we need to install LAMP stack. To install LAMP stack we execute the below command.

[root@localhost ~]# yum install httpd mariadb mariadb-server httpd-devel mod_ssl mod_ssl mod_perl mod_perl-devel mariadb-devel php-mysql gcc gcc-c++ graphviz graphviz-devel patchutils gd gd-devel wget perl* -y

After installing the all required packages we start the service . To start the service we execute the below command.

[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl start mariadb


Configuration  of Mariadb database for Bugzilla on centos server

After installing the database we need to secure the database using the below command.

#mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

After that restart the service using the below command.

#systemctl restart mariadb

Now create the Bugzilla database and user using the below steps.

# mysql -u root -p

MariaDB [(none)]> create database bugzilladb;
MariaDB [(none)]> CREATE USER bug@localhost IDENTIFIED BY "bug";
MariaDB [(none)]> GRANT ALL ON bugzilladb.* TO bug@localhost;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit

Installation of Bugzilla on centos server

To download Bugzilla we need to execute the below command.
#wget http://ftp.mozilla.org/pub/webtools/bugzilla-5.0.tar.gz

After download this compressed file we need to extract the file.To extract this file we need to execute the below command.
#tar -xvzf bugzilla-5.0.tar.gz

Move the extracted directory into the Apache web root directory using the below command.
#mv bugzilla-5.0 /var/www/html/bugzilla

After move the directory we need to chage the ownership of the bugzilla directory using the below command.
#chown -R apache:apache /var/www/html/bugzilla


After that we need to install all required perl module into the system.To install all required module first we need to change the bugzilla directory using the below command.
#cd /var/www/html/bugzilla/
Then execute the below command.
#/usr/bin/perl install-module.pl --all

After completion of installation we need to edit localconfig file as below.
#vi /var/www/html/bugzilla/localconfig
Change the database parameter as shown below
$db_host = 'localhost';
$db_name = 'bugzilladb';
$db_user = 'bug';
$db_pass = 'bug';
Save and close the file.

After that run the checksetup.pl perl script to install Bugzilla.
#cd /var/www/html/bugzilla/
#./checksetup.pl

After that create new virtual host for bugzilla under /etc/httpd/conf.d/bugzilla.conf  and add the below lines into the bugzilla.conf file.

<VirtualHost *:80>
DocumentRoot /var/www/html/bugzilla/
</VirtualHost>
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
</Directory>

Then restart the apache service .
After that access the below url to access the bugzilla web interface.
http:// server-ip-address/bugzilla

That’s all. If this article is helpful about to know how to install and configure Bugzilla on centos 7 please share it!!

Please Donate To Bitcoin Address: [[address]]
Donation of [[value]] BTC Received. Thank You.
[[error]]

How to install and setup latest wordpress on CentOS 7 step by step guide

In this tutorial we learn what is wordpress and simple setup of latest version of wordpress on centos server.

What is Wordpress

Wordpress is an  free and open source blogging platform based on PHP and Mysql which is most popular blogging platform all over the world. Wordpress supports 70 different languages and many themes are available for wordpress to create a power ful website and also there are large no plugins available as well.
How to install and setup latest wordpress on CentOS 7 step by step guide
How to install and setup latest wordpress on CentOS 7 step by step guide

Installation LAMP stack

Before installing and setup wordpress we need to install LAMP stack. To install LAMP stack we execute the below command.
[root@localhost ~]# yum install httpd mariadb mariadb-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt php-xmlrpc unzip wget –y

After installing the all required packages we start the service . To start the service we execute the below command.
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl start mariadb

Configure Mariadb for Wordpress
After installing Mariadb package we need to secure mariadb using the below command.
#mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!


After securing mariadb we login and  create the database for wordpress.
#mysqladmin –u root -p
MariaDB [(none)]>CREATE DATABASE wordpress;
MariaDB [(none)]>GRANT ALL PRIVILEGES on wordpress.* to 'test'@'localhost' identified by 'testpassword';
MariaDB [(none)]>FLUSH PRIVILEGES;
MariaDB [(none)]>exit

Installing and Configuring WordPress on CentOS 7 server

We can download the latest version of wordpress to execute the below command.
wget http://wordpress.org/latest.tar.gz
Once download finished we extract the compressed package using the below command.
tar -xzvf latest.tar.gz
NOW we move the extracted files to the Apache web root directory using the below command.
 cp -avr wordpress/* /var/www/html/
After that we  create a directory  to store uploaded files using the below command.
mkdir /var/www/html/wp-content/uploads

Now we need to assign proper permission and ownership to the web directory.
chown -R apache:apache /var/www/html/
chmod -R 755 /var/www/html/

Now we rename  the wordpress sample config file and edit it to change the database parameter
 cd /var/www/html/
 mv wp-config-sample.php wp-config.php
 vi wp-config.php
Change the DB_NAME,DB_USER, and DB_PASSWORD variables as shown below.
define('DB_NAME','wordpress');
define('DB_USER', 'test');
define('DB_PASSWORD', 'testpassword');
Save and close the file .
After completion the above steps open the browser and type url http://server-ip and select the language and click continue button and fill up required info and press install to install the wordpress.

After installation successfully we will get the wordpress dashboard.

If this article is helpful to know about how to install and setup latest wordpress on CentOS 7 please share this article.

How to install PHP 7.0,7.1 and 7.2 on CentOS 7 server step by step guide.



In this article we learn how to install PHP 7.0,7.1 and 7.2 on centos 7 server.
PHP 5.4 is available in centos 7 main repository . To install PHP 7.x we need to install remi repository on the centos server. To do this we need to execute the below steps.

Installation Steps of PHP 7.0, 7.1 & 7.2 on CentOS 7 Server

To install remi repo first we need to install EPEL repo and yum-utils .To install these packages we need to execute the below command.
[root@localhost ~]#yum install epel-release yum-utils –y
After doing this we can install remi repo using the below command.
[root@localhost ~]#yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
 Base on your requirement, configure the PHP 7.x repository
To configure PHP 7.0 repository, execute below command,
[root@localhost ~]#yum-config-manager --enable remi-php70
To configure PHP 7.1 repository, execute below command,
[root@localhost ~]#yum-config-manager --enable remi-php71
To configure PHP 7.2 repository, execute below command
[root@localhost ~]#yum-config-manager --enable remi-php72
After doing the above tasks we execute the below command to install the php packages.
[root@localhost ~]#yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y
To verify which php package is installed to execute the below command.
 [root@localhost ~]#php –v
PHP 7.0.33 (cli) (built: Dec  5 2018 14:22:44) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33, Copyright (c) 1999-2017, by Zend Technologies
How to install PHP 7.0,7.1 and 7.2 on CentOS 7 server step by step guide.
How to install PHP 7.0,7.1 and 7.2 on CentOS 7 server step by step guide.







How to install and simple setup LAMP stack on CentOS 7 step by step guide


In this article we learn what is LAMP stack and how to install and setup LAMP stack  on centos 7.

What is LAMP stack

LAMP stack is used to host web site as well as web application on server.LAMP stand for Linux,Apache(to host the web site),Mysql (to store the data used as a database server),Php (for php application).

Install Apache web server on centos 7

To install apache server execute the below command.
[root@localhost ~]# yum install httpd

After installing the APACHE server we need to turn on(enable the APACHE service at the startup mode) httpd service to turn on the service we execute the below command.
For linux(5/6)
#chkconfig httpd on
For linux 7
#systemctl enable httpd

 To start,stop and restart the APACHE service we need to execute the below command.
For linux(5/6)
#service httpd start
#service httpd stop
#service httpd restart

For linux 7
#systemctl start httpd
#systemctl stop httpd
#systemctl restart httpd
How to install and simple setup  LAMP stack on CentOS 7  step by step guide

How to install and simple setup  LAMP stack on CentOS 7  step by step guide



Install Mariadb server on centos 7

To install MariaDB on CentOS 7 we need to execute the below command.
#yum install mariadb-server mariadb

To start and enable the MariaDB service on CentOS 7 we need to execute the below command.
#systemctl start mariadb
#systemctl enable mariadb

CentOS 7  uses firewalld as a software firewall instead of iptables. By default MariaDB server is running on 3306 port. We need to allow this port into firewall rule to access it. To allow the incoming connection to the standard MySQL tcp port we need to execute the below command.
#firewall-cmd  - -permanent  - -add-service=mysql
#firewall-cmd  -- reload

To secure MariaDB we use “mysql_secure_installation” .After executing the “mysql_secure_installation” command we need to set root password,remove test database, remove anonymous user login and disable the remote login.

#mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

After that restart the service using the below command.

#systemctl restart mariadb


Install PHP on centos 7

To install php on centos server we need to execute the below command.
yum install php php-mysql php-gd
after executing this above command we need to restart the httpd service using the below command.
#systemctl restart httpd

That’s all. We have configured the LAMP stack. If this article is helpful please share it!!!!!