Installing, configuring , PHP in apache server ww.linuxtipsz.blogspot.in
























PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994,the PHP reference implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page,but it now stands for the recursive backronym PHP: Hypertext Preprocessor.




PHP code may be embedded into HTML code, or it can be used in combination with various web template systems, web content management system and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in the web server or as a Common Gateway Interface (CGI) executable. The web server combines the results of the interpreted and executed PHP code, which may be any type of data, including images, with the generated web page. PHP code may also be executed with a command-line interface (CLI) and can be used to implement standalone graphical applications.




The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge.




The PHP language evolved without a written formal specification or standard until 2014, leaving the canonical PHP interpreter as a de facto standard. Since 2014 work has gone on to create a formal PHP specification.




During the 2010s there have been increased efforts towards standardisation and code sharing in PHP applications by projects such as PHP-FIG in the form of PSR-initiatives as well as Composer dependency manager and the Packagist repository.







Steps to configure PHP in apache webserver (HTTPD).




· Install php rpms using “Yum install php –y “ . If yo are facing any issue with yum please go to my post on Yum issues.




· Edit httpd.conf “ vi /etc/httpd/conf/httpd.conf” and add “LoadModule php5_module modules/libphp5.so” to the file




· Also add the below code snipet to http.conf and restart the apache server.










<FilesMatch \.phpgt;




SetHandler application/x-httpd-php




</FilesMatch>
10:09Anuroop Melarayil

Installing, configuring , allowing remote access in mysql server ww.linuxtipsz.blogspot.in


























MySQL (officially pronounced as /maɪ ˌɛskjuːˈɛl/ "My S-Q-L") is an open-source relational database management system (RDBMS). In July 2013, it was the world's second most[a] widely used RDBMS, and the most widely used open-source client–server model RDBMS.[9] It is named after Michael Widenius' (who is a co-founder of MySQL) daughter, My, while "SQL" stands as the abbreviation for Structured Query Language. The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation. For proprietary use, several paid editions are available, and offer additional functionality.


MySQL is a popular choice of database for use in web applications, and is a central component of the widely used LAMP open-source web application software stack (and other "AMP" stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python". Free-software open-source projects that require a full-featured database management system often use MySQL. Applications that use the MySQL database include: TYPO3, MODx, Joomla, WordPress, phpBB, MyBB, Drupal and other software. MySQL is also used in many high-profile, large-scale websites, including Google (though not for searches), Facebook ,Twitter,Flickr and YouTube.


On all platforms except Windows, MySQL ships with no GUI tools to administer MySQL databases or manage data contained within the databases. Users may use the included command line tools, or install MySQL Workbench via a separate download. Many third party GUI tools are also available.






Steps to install , configure and allow remote access in mysql server


1. Install the mysql rpms using yum “ yum install mysql ”. If you are facing any issues with yum please refer my previous post on yum issues.


2. Start mysqld service using “service mysqld start”


3. Configure your mysql database using “/usr/bin/mysql_secure_installation”


4. Now login to you mysql server using “mysql –u root -p” and enter the mysql root password which you have given in last step.


5. Now you can create database in your mysql server using “create database mysqldbtst;”


6. Now switch to mysqldbtst database using “use mysqldbtst;”


7. Grand access to the database using “grant all privileges on Testdb to 'testuser'@'%' identified by 'Test@123';”
10:32Anuroop Melarayil

Ansible server Installation on Centos ( Not ansible tower)

Ansible is a free-software platform for configuring and managing computers which combines multi-node software deployment, ad hoc task execution, and configuration management. It manages nodes (Linux nodes must have Python 2.4 or later installed on them, Windows nodes require PowerShell 3.0 or later) over SSH or over PowerShell.Modules work over JSON and standard output and can be written in any programming language. The system uses YAML to express reusable descriptions of systems. The main components of Ansible are


  • Inventory configuration file
  • Playbook file



07:14Anuroop Melarayil