Extract the archive file and install the application. Make sure that you download the correct version (32-bit or 64-bit) for your Linux distribution. From the Aptana web site, download the Linux installation package. After these preliminaries, we are ready to install the Aptana IDE.Restart the Apache web server ( sudo service apache2 restart) and check the “phpinfo” page to ensure that the xdebug.remote_port value is now 9008. See the XDebug settings documentation for details. Of course, you can add other configuration settings, as necessary, such as if you are trying to debug on a different machine (by default, XDebug assumes that the “host” to use for debugging is “localhost”, which the name of the machine itself). However, for some reason, Aptana (Eclipse) does not recognize the default values of the other settings, so we must set them explicitly. Note: We are only changing the remote_port setting from its default (9000). Open the XDebug configuration file in a text editor (you will need to use sudo, since this file is “owned” by the system root user!) and add the following lines. ini files parsed section at the top and find the name of a file which contains “xdebug”, such as /etc/php5/apache2/conf.d/20-xdebug.ini. First, we need to find the XDebug configuration file: On the “phpinfo” page, look for the Additional. To avoid conflicts with other debuggers, such as for Java, on our system, we are going to change the TCP port that XDebug “listens” on to 9008 (from the default of 9000). Ubuntu has relatively recent versions of XDebug, so we can simply install from the repositories:Īfter it has installed, open your “phpinfo” page to ensure that XDebug is referenced as one of the loaded modules/extensions (it will be listed toward the bottom). XDebug allows you to pause the execution of your code to check the internal values of variables (and even change them!) using breakpoints and to step through individual lines of code to examine what PHP is doing with the data. Now we need to install the XDebug PHP extension to help us with debugging and troubleshooting when we are developing our application with Laravel.See the man page for the update-alternatives command.)Īfter Java is installed, run java -version in the Terminal again to make sure it is working correctly. (Note that Ubuntu can support multiple Java JDK/JRE versions, but only one can be active at a time. If you don’t have Java installed (i.e., an error occurs when you check the version), you can install it with this command:Īlternately, you can install Java 6 from the Ubuntu repository, but I recommend using the latest version unless you have a specific need for an earlier version, such as application compatibility. (Java’s numbering scheme is a bit confusing and the value after the first decimal is actually the version. The actual version of Java is not too important, as long as it is 1.6 or greater. OpenJDK Client VM (build 24.51-b03, mixed mode, sharing) You should see something similar to this in response to the command: In most cases, Java will already be installed, but just to confirm that you have it, run this command in the Terminal: To use Aptana (or Eclipse), we must have Java installed on our system.Likewise, we’ll set up the excellent XDebug debugger to help us develop more effectively. We’ll develop using the Aptana IDE ( integrated development environment), which is a web development-specific version of the popular open-source Eclipse IDE. Before we actually start working on our new Laravel application, let’s set up our PHP development environment in Ubuntu/Linux Mint.
0 Comments
Leave a Reply. |