Wednesday, 31 August 2016

Laravel 5 Installation in Linux


Step 1:

Requirements of Laravel framework installation in Linux

i) xampp or wampp

ii) Composer

iii) mcrypt

Step 2:

First you have to complete the xampp installation and then start the server using following command

   sudo /opt/lampp/lampp restart

Step 3:

Install the required softwares for laravel framework

   sudo apt-get install curl php5-cli git

   sudo apt-get install openssl

Step 4:

Install the composer using getcomposer.org

   curl -sS https://getcomposer.org/installer | php 
   sudo mv composer.phar /usr/local/bin/composer

Step 5:


Now you need to get important dependencies of laravel - mcrypt

   sudo apt-get install php5-mcrypt php5-json

And now run,

   sudo php5enmod mcrypt

To make sure it is running,

   php -i | grep mcrypt

Step 6:

Let us now move to directory of public_html

   cd /opt/lampp/htdocs

And then make directory like a laravel-projects

   mkdir laravel-projects

Now you have to execute the command for new projects

   sudo composer create-project laravel/laravel --prefer-dist

It’s gonna take its time. Just wait for it to finish. Once it is done, execute

   sudo chmod -R 775 laravel

Step 7:

Now move to the directory into laravel, then execute artisan-serve

  sudo php artisan serve

Finally visit the http://localhost:8000




Wednesday, 17 August 2016

Laravel 5.0 installation in easy method


step 1:

Download and install the composer using getcomposer.org

step 2:

Install the composer using php variable path

ex: c:\xampp\php\php.exe

or

c:\wamp\php\php.exe

step 3:

Open the command prompt and then set global requirement for composer

composer global require "laravel/installer"

(it will take some time for installation)

step 4:

Set path variable to environment variables

set path = C:\Users\administrator\AppData\Roaming\Composer\vendor\bin

step 5:

Finally create a new project using laravel

c:\xampp\htdocs> composer create-project laravel/laravel --prefer-dist

c:\xampp\htdocs\laravel> composer update

step 6:

Finally open the project using browser

localhost/project_namr/public


Monday, 18 July 2016

Squid3 configuration in Linux


Step 1:

sudo apt-get update && upgrade

Step 2:

sudo apt-get install squid3

Step 3:

sudo cp “/etc/squid3/squid.conf” “/etc/squid3/squid.conf.original”
(without quotes)

Step 4:

sudo gedit /etc/squid3/squid.conf
(Edit the squid configuration file)

i) acl Connect method Connect (Line no: 919)
acl allow_network src 192.168.1.0/24
acl blocklist url_regex “/etc/squid3/blocklist”


 ii) Implement access list (Line no: 1058)

http_access allow localhost
http_access deny blocklist

http_access allow all (final process deny or allow)



iii) Change the port address (Line no: 1460)

http_port 3128



iv) Change the host name to visible (Line no: 4761)

visible_hostname fireproof


Step 5:

Add a new blocklist file in squid directory

sudo gedit /etc/squid3/blocklist
(To add url content in the blocklist)

Step 6:
Restart the squid server

sudo service squid3 restart

Step 7:
change the browser settings in mozilla or chrome

Add the proxy and port address in browser settings and refresh web page.






Thursday, 23 June 2016

Xampp installation and default configuration in LINUX


Step 1:

Download the Latest xampp version for Linux

Step 2:

i)   Go to the  path  where you are stored in the specified location

ii)  Change the permission in xampp shell or run file using chmod

      chmod +x filename.run(xampp-linux1.8.3.run)

iii) Boot or execute the file using ./
      ./xampp-linux1.8.3.run

Step 3:

After execution you will get graphical mode installation in your display
Step 4:

After finish the installation you have to start the services using xampp control panel

    sudo /opt/lampp/manager-linux-x64.run

Step 5:

i)    Linux machine have default apache server supporting purpose first you have to stop that services
       sudo /etc/init.d/apache2 stop
       (This command used for stop the already running apache server)

ii)   Default apache path in linux machine
 
       sudo /etc/apache2/apache.conf

iii)  Next step is how to start xampp automatically in your machine
       sudo /opt/lampp/lampp start
       sudo gedit /etc/init.d/lampp

iv)  You will get new geditor on your machine and then type following two lines
       #!/bin/bash
       /opt/lampp/lampp start

v)  After close the editor then you have to execute the following commands
     sudo chmod +x /etc/init.d/lampp
     sudo update-rc.d lampp defaults

vi) Yeah! Finally you did the configuration... Done!!!


SVN SERVER REPOSITORY CREATION


STEP 1:
svnadmin create “d:\svn_repos”
(CREATE NEW REPOSITORY)

STEP 2:
GO TO D:\svn_repos\conf\
Svnserve.conf
[general]
anon-access = read
auth-access = write
passwd_db = passwd
Uncomment these lines in “svnserve.conf” file

STEP 3:
(OPEN NEW CMD WITH administrator rights)
set SVN_EDITOR = c:\windows\system32\notepad.exe

svnserve --daemon --root "d:\svn_repos"


Step 3 A
Add subversion variables in system variables
Path C:\Program Files (x86)\Subversion\bin
Extract svn service.zip and copy all the data to C:\Program Files (x86)\Subversion\bin

STEP 4:
(NOW CLOSE THE OLD CMD)
svnservice -install --daemon --root “d:\svn_repos”


STEP 4(a):

Svn mkdir svn://localhost/”project”

STEP 5:
(NOW START THE SERVICES)
sc configsvnservice start= auto
net start svnservice

STEP 6:
svn ls svn://localhost/

Saturday, 2 August 2014

HOW TO USE Attrib COMMANDS


what is attrib command?

                      The attrib commands is a Recovery Condole command used to change the fill attributes for a file or directory while in recovery Console.

                      An attib command is also available from the command prompt.

Attrib Command syntax:

               attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [file name]

               +r = this assigns the read only file attribute  to the file or directory.

               -r = This removes the read only attribute.

               +s = This assigns the system file attribute to the file or directory.

               -s = This removes the system attributes.

               +h = This assigns the hidden file attribute to the file or directory.

               -h = This removes the hidden attribute.

               +c = This assigns the compressed file attribute to the file or directory.

                -c = This removes the compressed attribute.

                file name = This is the file or directory that you are wanting to change the attributes.

Attrib Command Examples:

                    attrib +r c:\windows\system\secret folder

            In the above example, the attrib command is used to turn on the read only attribute, using the +r option, for the secret folder directory located in  c:\windows\system.

                    attrib -h c:\config.sys

            In this example, the config.sys file located in the root directory of the c: drives has it hidden file attribute cleared by the use of the -h option.

                   attrib -r -s -h /s /d "folder name"
          
             This command will remove attributes for all files folder and sub folders:r-read only s-system file h-hidden file the processing matching files and all sub folders.

                   attrib -h -r -s /s /d "folder name"

             This command is used to lock drivers or folders just alter "-" with "+". 

                  




Friday, 1 August 2014

Disk Defragment


What is disk defragmentation?

                  Disk defragmentation is the process of consolidating fragmented data on a volume(such as a hard disk or a storage device) so it will work more efficiently.

                  Fragmentation happens to a volume over time as you save, change, or delete files. The change that you save to a file are often stored in a place in the volume than the original file. this doesn't change where the file appears in windows only where the bits of information that make up the file are stored on the actual volume itself become fragmented, and your computer slows down as it has to look in different places to open a single file.

                 Disk defragmenter is a tool that rearranges the data on your volume and reunites fragmented data so your computer can run more efficiently, In this version of windows, Disk defragmenter runs on a schedule so your don't have to remember to run it, although you can still run it manually or change the schedule it uses.

Step by step procedure

Step 1: Uninstall any programs you don't use or need. It's best uninstall programs prior to a defragmentation, as the newly-acquired free space will generally be located all over the hard drive, thereby giving rise to fragmentation.

Step 2: Make sure the all unnecessary programs are closed.

Step 3: Cancel any programs that are scheduled to run. If you have not manually scheduled any programs to run, the skip this step.

Step 4: Delete any temporary files. This is done by running disk cleanup. To run the programs, go to:
START -> Run, and the cleanmgr in the window.

Step 5: Run the Disk Defragmented programs. Go to START - Run, and enter dfrg.msc in the window. A window that is similar to the one below should appear:

                    

  •   Select the particular disk.
  •   Click to analyze button
  •   Analyze the disk drives
  •   After, Click to defragment button
  •   Automatically rearrange the disks.