Tuesday, June 1, 2021

How to Install XAMPP on ubuntu 16.04

 The "XAMPP" stack is an acronym where X stands for an operating system, A stands for Apache web server, M stands for MySQL or MariaDB database server and PP stands for PHP and Perl. So, as we are installing XAMP stack in our Ubuntu 16.04 linux machine, we can call is LAMPP stack where L stands for Linux. XAMPP stack is used together in a group in order to host dynamic PHP based websites and web applications. This setup enables us to run large numbers of web based applications and websites as we can find large numbers of PHP based web applications on the internet. Now, we'll move ahead towards the step-wise installation of XAMPP stack in our Ubuntu 16.04 machine.

System Requirements

Here's the minimum system requirements to install and run XAMPP stack in Ubuntu 16.04 LTS server.

RAM : Minimum 1GB memory
HDD : At least 1 GB free disk space
CPU : 1 Core Processor

Uzip File Command in Ubuntu

 

Unzip Into a Folder

All Linux and Unix systems ship with the unzip command. It’s a command-line utility allowing you to unzip a compressed file.

By default, the unzip command extracts the ZIP’s contents into the current directory. Instead of polluting the current directory with extracted files, you may unzip the files into a new folder using the unzip -d flag:

# “unzip -d” extracts the content into a directory
unzip path/to/file -d path/to/folder

# Example
unzip fonts.zip -d ./new-future-studio-fonts  

Notice: the unzip command won’t create non-existent paths on your disk. If you want to extract the archive into a non-existent folder path, you’ll run into errors.

For example, a directory non-existent-folder does not exist in the current path. If you want to unzip into a subdirectory of this folder, you’ll run into an error.

$ unzip fonts_otf.zip -d ./non-existent-folder/fonts
Archive:  fonts_otf.zip  
checkdir:  cannot create extraction directory: ./non-existent-folder/fonts  
           No such file or directory

That’s it. Unzipping a file from the command line is pretty straightforward using unzip <file> -d <folder>.

Tuesday, February 23, 2021

PHP coding Ke exe file menggunakan Inno Setup

 What is PHP Desktop?

Mind you, the development workflow you are used to while creating web applications remains the same. The step of turning an existing website into a desktop application is basically a matter of copy and paste.

PHPDesktop is an all-made container that will just swallow your project. With that, you can easily transform an existing website into a desktop application without any modification. When you download PHP Desktop, you will have some set of files and folders; among them, you will have a folder called www in which you will just paste your entire application.

For those who have used WampServer, Xamp or EasyPhp, it won't be a problem to understand the concept. When you are using these local servers, you usually create your projects into a particular folder called wwwhtdocs, or localweb. It differs from one server to another, but the concept remains the same. That particular folder helps your webserver to know where to run your application (website) from.

PHP Desktop works the same way. The difference is that PHP Desktop does not require any particular installation; it is an all-in-one portable set of all these local servers have and it does all you can do with WampServer or Xamp and others in the same family.

PHP Desktop comes with a .exe file. Whenever you run that .exe, it will go into the www folder and run your index file. I am going to explain this process later in this tutorial.

Modifikasi pathname pada terminal linux menjadi lebih pendek

Bagi pengguna linux turunan ubuntu seperti ubuntu 16.04 yang saya gunakan, ada beberapa hal yang cukup membuat kita ribet dengan pathname pa...