As a PHP developer on Ubuntu, we may need to re setup our development environment sometimes. I did it already a few times, so decided to write down the steps for a typical php development environment on ubuntu. My Ubuntu version is 16.04.
Installation List
Installation PHP 5.6 & Apache2
We need to enable PPA in order to install PHP 5.6.
PhpMyAdmin is an open-source software tool introduced on September 9, 1998, which is written in PHP.Basically, it is a third-party tool to manage the tables and data inside the database. PhpMyAdmin supports various type of operations on MariaDB and MySQL.The main purpose of phpMyAdmin is to handle the administration of MySQL over the web. Step 3: Set up the database configuration In PhpStorm: Click on the General tab of the configuration of your datasource Fill the credentials, host and port. If you’re using Symfony, you can find it in the parameters.yml file. PhpStorm 2021.1 Early Access Program has started – Be the first to try out the new features for the upcoming release. WordPress, and phpMyAdmin.
Now we can install PHP 5.6 by the following commands
To install Apache2, run
Ubuntu 16.04 comes with PHP 7 as default. If you have PHP 7 installed, it won’t activate php 5.6 module. To activate, run
Now finally restart apache, so you are done with PHP 5.6 installation.
MySQl
PHPMyAdmin
Please follow the instruction from the link bellow to install PHPMyAdmin in your system.
CURL
PHP Storm IDE
You need to first install Oracle JDK in order to install PHP Storm. If you want to use SmartGIT 17.1.2 in your system then install JDK 8, otherwise you caninstall latest JDK 9.
Install Oracle JDK 8
First, update the package index.
Then, add Oracle's PPA, then update your package repository.
To install JDK 8, use the following command:
During the installation process you will need to accept the Oracle License agreement. Once installed we need to set Java environment variables such as JAVA_HOME on Ubuntu 16.04/17.04.
You can check the configured JAVA_HOME value by running the command bellow.
Install PHP Storm
First go the official website and download the tar archive. Extract the archive in your system and you will get a folder like ‘PhpStorm-172.4155.41’ (latest version at the time of writing this). Then go to the location where you downloaded it from the command line and move the folder to /opt/phpstorm following the command below.
Create a symlink
Now type phpstorm in the terminal to launch the application.
Follow the installation instruction of Importing from previous installation and Privacy Policy. Then choose the ‘Evaluate for fee for 30 days’ option and complete the installation.
After installation, opent the IDE and activate the license.
Go to Help > Register
Choose the 'License Server' option and use this URL as the license server, http://idea.imsxm.com
Click Activate, and you are done! :)
Install Composer
Check if Composer is already instaled or not.
Before installing the composer, we need to update the machine with the below command –
Composer will be installed under /usr/local/bin
Download the Composer using the below command in the /tmp folder
Strategic mind franchise soundtrack download free. Once you have downloaded the script, we will install the packages using the below command, and will install the Composer in the /usr/local/bin with –install-dir flag;
Finally check the version of the composer to make sure it is installed properly.
Install and Configure xDebug on Ubuntu for PhpStorm
- Assuming that you have already installed php and apache
- Install xDebug php extension
- Edit your
xdebug.ini
- Your
xdebug.ini
file path should look like this/etc/php/7.1/mods-available/xdebug.ini
- Add these lines without modifying exiting
- Restart the apache server to reflect changes
Configure phpStorm
Go through - Settings >> Languages & Frameworks >> PHP >> Debug
Check that 'Debug port' is the same you have in your
xdebug.ini
. In our case it was9000
.Save and close the Settings Dialog
Start debugging
Create some breakpoints in your project
Make sure those breakpoints gets executed when your visit your website in browser.
Start listener by clicking on the telephone
📞 button on top toolbarIf you can't find telephone button; then go through menus - Run -> Start listening for PHP Debug Connections
In your browser access your project url like this
OR use bookmarks
OR use chrome extension
You should see a popup window in PhpStorm , click Accept connection
Done, enjoy debugging !!!
Disable xdebug
Enable xdebug back
Disable xdebug for commandline only
Step 1 – Download Skype Debian Package
First of all, download the Skype package for Debian system from its official download page. You can also use below command to download latest available Debian package.
wget https://repo.skype.com/latest/skypeforlinux-64.deb
Step 2 – Install Skype
Use the following command to install downloaded skype package on your Ubuntu system.
sudo dpkg -i skypeforlinux-64.deb
In the case of the above command failed to install package due to any dependency run command.
sudo apt-get install -f
Step 3 – Launch Skype
Use your dashboard skype button to start skype on your system, or you can use the following command as well.
skypeforlinux
As a PHP developer on Ubuntu, we may need to re setup our development environment sometimes. I did it already a few times, so decided to write down the steps for a typical php development environment on ubuntu. My Ubuntu version is 16.04.
Installation List
Installation PHP 5.6 & Apache2
We need to enable PPA in order to install PHP 5.6.
Now we can install PHP 5.6 by the following commands
To install Apache2, run
Ubuntu 16.04 comes with PHP 7 as default. If you have PHP 7 installed, it won’t activate php 5.6 module. To activate, run
Now finally restart apache, so you are done with PHP 5.6 installation.
MySQl
PHPMyAdmin
Please follow the instruction from the link bellow to install PHPMyAdmin in your system.
CURL
PHP Storm IDE
You need to first install Oracle JDK in order to install PHP Storm. If you want to use SmartGIT 17.1.2 in your system then install JDK 8, otherwise you caninstall latest JDK 9.
Install Oracle JDK 8
First, update the package index.
Then, add Oracle's PPA, then update your package repository.
To install JDK 8, use the following command:
During the installation process you will need to accept the Oracle License agreement. Once installed we need to set Java environment variables such as JAVA_HOME on Ubuntu 16.04/17.04.
You can check the configured JAVA_HOME value by running the command bellow.
Install PHP Storm
First go the official website and download the tar archive. Extract the archive in your system and you will get a folder like ‘PhpStorm-172.4155.41’ (latest version at the time of writing this). Then go to the location where you downloaded it from the command line and move the folder to /opt/phpstorm following the command below.
Create a symlink
Now type phpstorm in the terminal to launch the application.
Follow the installation instruction of Importing from previous installation and Privacy Policy. Then choose the ‘Evaluate for fee for 30 days’ option and complete the installation.
After installation, opent the IDE and activate the license.
Go to Help > Register
Choose the 'License Server' option and use this URL as the license server, http://idea.imsxm.com
Click Activate, and you are done! :)
Install Composer
Check if Composer is already instaled or not.
Before installing the composer, we need to update the machine with the below command –
Composer will be installed under /usr/local/bin
Download the Composer using the below command in the /tmp folder
Once you have downloaded the script, we will install the packages using the below command, and will install the Composer in the /usr/local/bin with –install-dir flag;
Finally check the version of the composer to make sure it is installed properly.
Install and Configure xDebug on Ubuntu for PhpStorm
- Assuming that you have already installed php and apache
- Install xDebug php extension
- Edit your
xdebug.ini
- Your
xdebug.ini
file path should look like this/etc/php/7.1/mods-available/xdebug.ini
- Add these lines without modifying exiting
- Restart the apache server to reflect changes
Configure phpStorm
Go through - Settings >> Languages & Frameworks >> PHP >> Debug
Check that 'Debug port' is the same you have in your
xdebug.ini
. In our case it was9000
.Save and close the Settings Dialog
Start debugging
Create some breakpoints in your project
Make sure those breakpoints gets executed when your visit your website in browser.
Start listener by clicking on the telephone
📞 button on top toolbarIf you can't find telephone button; then go through menus - Run -> Start listening for PHP Debug Connections
In your browser access your project url like this
OR use bookmarks
OR use chrome extension
You should see a popup window in PhpStorm , click Accept connection
Done, enjoy debugging !!!
Disable xdebug
Enable xdebug back
Disable xdebug for commandline only
Step 1 – Download Skype Debian Package
First of all, download the Skype package for Debian system from its official download page. You can also use below command to download latest available Debian package.
wget https://repo.skype.com/latest/skypeforlinux-64.deb
Step 2 – Install Skype Edit pdf wps office.
Use the following command to install downloaded skype package on your Ubuntu system.
sudo dpkg -i skypeforlinux-64.deb
In the case of the above command failed to install package due to any dependency run command.
sudo apt-get install -f
Step 3 – Launch Skype
Use your dashboard skype button to start skype on your system, or you can use the following command as well.
Phpstorm Phpmyadmin Tutorial
skypeforlinux