The most viewed items
We need Apache Service to run php codes. Now I hope you've already installed the Apache Service in your Windows PC. If you have not installed, please click here.
We need Text Editor to write php codes. If you don't have any text Editor, please click here.
If you've completed the above steps. We will start to write php codes.
1. Open your Text Editor (here I use ConText) and create New File.
2. Choose PHP instead of Text files as the below picture.
3. Save that file as test.php in the C > xampp > htdoc.
4. In test.php, write the following codes.
We need Text Editor to write programming codes. ConText is one of the best open source text editors. Please click here to download.
We need Apache service to run php codes. Xampp is the open source software we can use as Apache Server in Windows. Please click here to download.
Before installing Xampp in Windows PC, you better decrease UAC Level and disable Firewall or Antivirus.You can set back default setting after installation.
How to decrease UAC Level
1. Type uac in the search box and press Enter.User Account Control Setting Box will be appeared.
2. Choose Lowest Level and Click Ok.
How to disable Firewall
1. Press Windows and R Keys together at the same time.Run Box will be appeared.
2. Type firewall.cpl in the Run Box and click OK.
2. Click Windows Firewall on or off.
3. Choose Turn off Windows Firewall and click OK.
Then, start to run the exe file you've downloaded and follow the procedures.It will take some time to finish installation.
Now, I hope you've successful installed. Open the Xampp Control Panel. Start Apache and MySQL. You will see as the following picture.
To test Apache Service in Windows,
Open Web Browser and type localhost in it and press Enter. You will as the following picture.
1. To check php version, click PHPInfo.
2. To MySQL Service, click phpMyAdmin.
We need Apache Service to run php codes. Now, I hope you've already installed Apache Service in your Ubuntu PC. If you have not installed it, please click here. Then, follow the below steps.
1. Click Open Folder Location.
2. Double click htdoc.
3. Right Click in htdoc and Click Open In Terminal.
4. Type nano in the Terminal and press Enter. And then, type the following php codes.
1. Click here to download the Xampp Software for Ubuntu.
2. Open new terminal and type cd Downloads in it and press Enter.
3. Type sudo chmod +x xampp-linux-x64-7.3.0-0-installer.run and press Enter.
4. Type sudo ./xampp-linux-x64-7.3.0-0-installer.run and press Enter.
Now, you've successfully installed the Xampp in Ubuntu. To open Xampp, type the following command in the terminal.
sudo /opt/lampp/manager-linux-x64.run and press Enter. Then, the following welcome page will be appeared.
Go to Manage Servers and start MySQL Database and Apache Web Server.
To check Apache Web Server,
Open Web Browser and type localhost in it and press Enter. Then, you will see the following welcome page.
To check MySQL Service,
Type localhost/phpmyadmin/ in the browser and press Enter. Then, you will see the following welcome page.
Installing php 7.0
sudo apt-get install php7.0
To search php extensions
apt-cache search php7.*
Then, you can install php extensions upon the services you need.
The followings are the commands to install MySql in Ubuntu.
1. Open new terminal and type sudo su in it.
2. Type apt-get install mysql-server php7.0-mysql and press Enter.
3. Type systemctl status mysql and press Enter. (Checking MySql service working or not)
4. Type systemctl enabel mysql and press Enter. (Enabling MySql service)
5. Type systemctl start mysql and press Enter. (Starting MySql Service)
6. Type mysql_secure_installation and press Enter. (Give Username, Password and follow the procedure)
7. Type mysql -u root -p and press Enter.(Log In MySql)
1. Open new terminal and then, we better type sudo su and press Enter for admin persmission before typing any command.
2. Type apt-get install apahce2 libapache2-mod-php and press Enter.
3. And then, type systemctl status apache2 to check if the apache service is running or not.
4. If the apache service is not running, type systemctl enable apache2 and press Enter, and then, systemctl start apache2 and presse Enter.
5. Open the browser and type localhost in it. Then you will see the following welcome page.
Nmap is one of open source network discovery tools. In Nmap, there are so many features such as Target Specification, Host Discovery, Scan Techniques, etc,... . We can also check website is up or down by using Nmap. In this example, I'l tell you some functions under Host Discovery.
How to install Nmap in Ubuntu
Open a new terminal and type sudo apt-get install nmap in it. Wait a moment until the software is successfully installed.
1. Using List Scan (-sL)
Open new terminal and type nmap -sL domain name (eg. nmap -sL tnw87.com) in it. Then you will see ip address of 'tnw87.com'. If you don't see, your domain is errored in something.
2. Using Ping Scan (-sn)
Open new terminal and type nmap -sn domain name (eg. nmap -sn tnw87.com) in it. Then, you will see '1 IP address / 1 Host is up'. If you don't see, your domain is errored in something.
3. Treat all hosts as online (-Pn)
Open new terminal and type nmap -Pn domain name (eg. nmap -Pn tnw87.com) in it. Then, you will see '1 IP address / 1 Host is up'. And the services of http, https, http-proxy, https-alt are needed to be in open state. You don't see those conditions, your website is errored in something.
There are still so many features in Nmap. Open new terminal and type nmap in it and press enter. Then, you will see so many features. You can try those yourself.
1. Click here and download Viber for Ubuntu. (Every file we download in Ubunt is saved in Download Page)
2. Copy or Cut downloaded file and paste in Home Page.
3. Open new terminal and type the following commands.
ls ~/viber.
sudo apt-mark hold libcurl3
sudo dpkg -i --ignore-depends=libcurl4 ~/viber.deb
sudo dpkg -i --ignore-depends=libcurl4 ~/viber.deb
sudo apt-mark unhold libcurl3
/opt/viber/Viber
4. Now you can start use viber in Ubuntu.
Shutter is one of open source screenshot software for Ubuntu. It is not bad to use. In this software, you can use many features to do capture ,and can edit as well.
How to install
Open terminal and type the following command in it.
- sudo apt install shutter
How to open shutter
Open new terminal and type shutter in it and then, the shutter will be opened.
It is the good habit to run the following commands before installing any software in Ubuntu.
- sudo apt-get update
- sudo apt-get upgrade
Virtualization
Virtualizatin is installing two or more operating systems in one physical machine. The main effects of using virtualizaton are security and cost saving. Oracle VirtualBox is one of virtualization softwares. It is open source software and totally free. Please click here to download. Install it after downloading.
Ubuntu
Ubuntu is one of open source operating systems. Please click here to download ubuntu ISO file.
Installing Ubuntu in VirtualBox
1. Start VirtualBox
- Open VirtualBox and Click New.
2.Choose Name and Operating System
- Type name in the Name box (for example, T N W)
- Choose operating system in Type box (here we will choose Linux)
- Chose version in Version box (here I will choose Ubuntu-64 bit)
- And then click Next.
3.Select Memory Size (RAM)
- Here I will give 4GB (4096MB) to the virtual machine
- Click Next.
4.Creating Virtual Hard Disk
- Choose Create a virtual hard disk now
- Choose VDI and click Next
- Choose Dynamically allocated and click Next
6. Starting Virtual Machine
- Click start
- Browse the Ubuntu ISO file you've downloaded.
- Click Start again.
- Select Language and click Install Ubuntu
- Click continue.
- Select Erase disk and install Ubuntu because there is noting in Virtual Hard Disk you've created.
- Click Install Now.
- Click continue.
- Choose location and click continue
- Select Keyboard Layout and click continue
- Fill Your Name and Secured Password
- Click Continue
- Now the machine is installing Ubuntu OS and it will take some time to complete.
- Click Reatart Now
- Press Enter
- Now your installation is complete and enter password to login