I am using nginx server for this documentation. First of all just choose a directory where you are gonna keep all your appliction files. Suppose, /var/www is going to be that directory.Create a directory and rename it with yourapplication-name. Inside that directory just create few pre-planned directory and file structure like the following. │ ├── routes ├── src ├── utilities ├── public ├── img ├── js ├── css ├── index.php ├── templates ├── composer.json We will manage and install all …
Blog Posts
To enable xDebug in your nginx server you just first install xdebug by pecl command. sudo pecl install xdebug Now xdebug is installed in your system. Now find exactly where xdebug.so file was downloaded. You have to find it in /usr/lib/php5/(somewhere in this directory) Now after find the xdebug.so you have to open your PHP5-FPM’s php.ini file with sudo gedit /etc/php5/fpm/php.ini and add the following command (to locate the xdebug and enabling it). zend_extension=locationOfYourxDebugfile xdebug.remote_port=9000 xdebug.remote_enable=On xdebug.remote_connect_back=On xdebug.remote_log=/var/log/xdebug.log Now restart …
Suppose, you think that you just copied a large directory or application or files to any other place inside your operating system. Then you need to change the file permission to all the files or to all the directories recursively in your Ubuntu operating system. In this case, don’t worry I will show you how to set recursive directories only or files only permission from your terminal in Ubuntu. Simply open your terminal and write down the following command to …
To use XAMPP’s PHP as default PHP in your command line to execute PHP commands fromyour command line/prompt you have to just follow the simple steps mentioned below: in this tutorial I used UBUNTU as my OS Open your terminal and open .bashrc file by following command: If you don’t use GUI or gedit not installed then you can use vim instead of gedit like following and just you have to add the following line at the end of your …
To connect with your FTP server it is recommended to use Passive mode for all connection. And to do that you have to enable passive mode on your PureFTP package in your server. Simply go to your PureFTP config file and remove enable passivePortRange option in config file. Open the config file with your suitable editor sudo vi /etc/pure-ftpd.conf Remove the comment (#) from the beginning of the line which contains the PassivePortRange option. Change that line to the following: …