THE IT IDEAS

  • Home
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

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, 27 November 2014

How to setup Network Configuration in Ubuntu Server 14.04

 THE IT IDEAS     14:35     ubuntu   

Open Network Configuration file.

#nano /etc/network/interface

Then Add below mentioned lines and make changes as per your need.

auto eth0
iface eth0 inet static
address 192.168.0.101
gateway 192.168.0.1
netmask 255.255.0.0
network 192.168.0.0
broadcast 192.168.0.255


Now Save file.

Open DNS Configuration file

#/etc/resolv.conf

Add below mentioned lines with your DNS IPs.

nameserver 8.8.8.8
nameserver 8.8.4.4


Save file.

Open Second DNS conf file.

#nano /etc/resolvconf/resolv.conf.d/base

add below mentioned lines with your DNS IPs.

nameserver 8.8.8.8
nameserver 8.8.4.4


Save file and restart your Networking service with below command.

#/etc/init.d/networking restart or #service networking restart

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

Monday, 24 November 2014

How to change DocumentRoot path in Apache Ubuntu 14.04 LTS

 THE IT IDEAS     11:21     apache2, DocumentRoot change, ubuntu   

Make backup copy of Apache default file with below command

#sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.bak

Edit 000-default.conf file to give DocumentRoot path

#sudo nano /etc/apache2/sites-available/000-default.conf

and change the following line with you new path:

DocumentRoot /var/www/html    (Default Line)


To


DocumentRoot /mywebsite   (Your website path)

after make changes in this file. Save and Close 000-default.conf file.

Now, Open apache.conf file and change the DocumentRoot path here as well.

#sudo nano /etc/apache2/apache2.conf

and find this

<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

and change /var/www/html to your preferred directory and save it.

After made changes in both files, just restart the apache2 webserver.

Use below command to restart apache server.
#sudo service apache2 restart
OR
#sudo /etc/init.d/apache2 restart



If you will receive permission error check the user of apache and give the permission.

To check user of apache run below command.

#ps aux | grep apache

Above command will show like this.





Then run below command to give permission.

#sudo chown -R $USER:$USER /mywebsite             

The $USER variable will take the value of the user you are currently logged in

Give permission to folder with below command
#sudo chmod -R 755 /mywebsite
Now restart the webserver.

#sudo service apache2 restart
OR
#sudo /etc/init.d/apache2 restart


Check Now !!
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

  • PDOException: SQLSTATE[42000]: 1148 The used command is not allowed with this MySQL version in AWS RDS
    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...
  • How to make Google Chrome Theme
    Open Google Chrome and open Chrome web store and search my chrome theme Click on Add to Chrome     Click on Add to downloadi...
  • How to disable Username and Password in Network pc
    1. Click Start 2. Control Panel 3. Network and Internet 4. Network and Sharing Center 5. Click Choose homegroup and sharing options...

Copyright © THE IT IDEAS | Powered by Blogger