THE IT IDEAS

  • Home

Friday, 22 April 2016

How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7 on Ubuntu 16.04 LTS

 THE IT IDEAS     13:37     php7, ubuntu, ubuntu 16.04, ubuntu16   


Update your repo list with below command

$ sudo apt-get update

-- > Install Apache 2.4.18

$ sudo apt-get install apache2

-- > Install PHP 7.0

$ sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json

-- > Install MySQL 5.7

$ sudo apt-get install mysql-server

Create info.php file at /var/www/html/info.php with your favorite editor and paste  below mentioned code in that file and check php7 with apache2 is running.

<?php
phpinfo();
?>

-- > Once finish with info.php open http://localhost/info.php or http://127.0.0.1/info.php then you can able to see page like below.



Its done Enjoy !!!! :)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Thursday, 20 August 2015

PHP Warning: shell_exec() has been disabled for security reasons

 THE IT IDEAS     18:03     php   



PHP Warning: shell_exec() has been disabled for security reasons

To start shell command execution in php code you need to edit php.ini and remove "shell_exec" from disable_functions line. below is the example of line

disable_functions = show_source,system,shell_exec,proc_open

to

disable_functions = show_source,system,proc_open

After remove the "shell_exec" save the php.ini file and Restart webserver.

Its done Enjoy !!!! :)


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Wednesday, 6 May 2015

Creating a Redhat package repository

 THE IT IDEAS     14:30     repo, rhel   

First check the repolist with below command.

# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repolist: 0

Run below command to check your CD or ISO file mounted on you machine.



# mount | grep iso9660
/dev/sr0 on /media/RHEL_6.4 x86_64 Disc 1 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=500,gid=500,iocharset=utf8,mode=0400,dmode=0500)



Now You can make repo file to listen repo management.

# nano /etc/yum.repos.d/RHEL64.repo

and paste below mentioned lines.

[RHEL64]
name=RHEL64
baseurl="file:///media/RHEL_6.4 x86_64 Disc 1/"
gpgcheck=0


Once created repo file check with below.
# yum repolist

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                                                     repo name                                                           status
RHEL_6.4_Disc                                               RHEL_6.4_x86_64_Disc                                                3,648
repolist: 3,648




Now You can able to install default packages which is stored in you Disk like below.


[root@vm ~]# yum install httpd
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-26.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch           Version               Repository             Size
================================================================================
Installing:
 httpd         x86_64         2.2.15-26.el6         RHEL64         821 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 821 k
Installed size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : httpd-2.2.15-26.el6.x86_64                                   1/1
  Verifying  : httpd-2.2.15-26.el6.x86_64                                   1/1

Installed:
  httpd.x86_64 0:2.2.15-26.el6                                                 

Complete!




Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Monday, 4 May 2015

PDOException: SQLSTATE[42000]: 1148 The used command is not allowed with this MySQL version in AWS RDS

 THE IT IDEAS     14:53     aws rds, drupal   

To Resolve this error you have to connect mysql with below command then you can able to run LOCAL INFILE command in mysql console or drupal.


# mysql --local-infile=1 -h rds-amazon-url.com -uroot -p


Now you can able to run LOCAL INFILE command in RDS.

#mysql>LOAD DATA LOCAL INFILE '/tmp/foo.txt' INTO TABLE foo
COLUMNS TERMINATED BY '\t';





Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Thursday, 30 April 2015

How to run a simple PHP web server

 THE IT IDEAS     13:12     apache2, php   

# php -S localhost:8000 -t /path/to/folder/directory

Above command give output like below

PHP 5.6.4-4ubuntu6 Development Server started at Thu Apr 30 15:10:00 2015
Listening on http://localhost:8000
Document root is /var/www/html
Press Ctrl-C to quit.


Now you can open the localhost:8000 in your browser to check the webpage.

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Wednesday, 22 April 2015

Install apache2 Webserver, php5 and php module with script for beginner

 THE IT IDEAS     17:37     installation, script   

Install apache2 Webserver with script for beginner

Find the script to install apache2 Webserver and php5 with php modules like cgi php5-mcrypt php5-mysql php-pear php5-gd php5-curl php5-cgi php5-cli php5-common php5-json php5-memcache php5-memcached

Click to Download Script
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Tuesday, 21 April 2015

Use PHP5-FPM with Apache 2 on Ubuntu 14.04

 THE IT IDEAS     17:27     apache2, php5-fpm   

Install Apache by following command

    #sudo apt-get update
    #sudo apt-get install apache2-mpm-event

To use PHP5-FPM with Apache, we need to install libapache2-mod-fastcgi module. The libapache2-mod-fastcgi module is not available in the Ubuntu package. Therefore, we need to update the apt sources. Follow these steps.

    Run the following command to edit the source list:

    #sudo nano /etc/apt/sources.list

    Add the following lines at the end of the file:

    deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

   
    Save and Close this file.


Install libapache2-mod-fastcgi Module


    #sudo apt-get update
    #sudo apt-get install libapache2-mod-fastcgi

 

Install PHP5-FPM with the following command

    #sudo apt-get install php5-fpm


Create the PHP5-FPM configuration file for Apache

    #sudo nano /etc/apache2/conf-available/php5-fpm.conf

... then add the following lines

    <IfModule mod_fastcgi.c>
    AddHandler php5-fcgi .php
    Action php5-fcgi /php5-fcgi
    Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
    FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -idle-timeout 900 -socket /var/run/php5-fpm.sock -pass-header Authorization
    <Directory /usr/lib/cgi-bin>
        Require all granted
    </Directory>

    </IfModule>

Save and Close this file.


Enable the new modules and configuration for Apache

    #sudo a2enmod actions fastcgi alias
    #sudo a2enconf php5-fpm

Finally, restart Apache

    #sudo service apache2 restart

 


Use PHP5-FPM with Apache 2 on Ubuntu 14.04

    #sudo nano /var/www/html/info.php

Add the following content to the file

    <?php phpinfo(); ?>

Save and Close this file.

Now open the http://localhost/info.php in browser. Upon success, you will see information about PHP and your server. Your setup is now complete.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Older Posts Home

Like Us !!!

Recent Posts

Blog Archive

  • ▼  2016 (1)
    • ▼  April (1)
      • How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7...
  • ►  2015 (12)
    • ►  August (1)
    • ►  May (2)
    • ►  April (8)
    • ►  March (1)
  • ►  2014 (23)
    • ►  December (8)
    • ►  November (12)
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (6)
    • ►  November (9)

Categories

apache2 EC2 error mysql php ubuntu aws aws rds browser github installation linux mount s3 AWS Bucket CentOS Computer DocumentRoot change How to Benchmarking Webserver IP LAMP Restart Computer SCP command SQL SERVER XRDP administrator amazon rds backup basic commands chat command line disable download drupal ec2.chroot environment external storage device fstab functions geoip gmail google home page iis instance internet java mod rewrite mongodb multiple login network password one password php5 php5-fpm php7 private browsing python repair filesystem repo reset password rhel sa password same computer script sftp share skype ssh tomcat ubuntu 16.04 ubuntu16 visudo windows 8 youtube
JobsMagBlogJobsMag.InThingsGuide

Popular Posts

  • Install MongoDB php driver in XAMPP/LAMPP
    To install the php driver for MongoDB Prerequisite :: #sudo apt-get install autoconf #export PHP_AUTOCONF=/usr/bin/autoconf #sudo apt...
  • How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7 on Ubuntu 16.04 LTS
    Update your repo list with below command $ sudo apt-get update -- > Install Apache 2.4.18 $ sudo apt-get install apac...
  • Share Internet from one PC to another PC
    Open Network Connections by clicking the Start button , clicking Control Panel , clicking Network and Internet , clicking Network and S...

Copyright © THE IT IDEAS | Powered by Blogger