Managing & Debugging PHP on your EC2 Instance


Configuring Aptana for PHP

  1. Set Default Permissions for files and directories created on the server. If you will frequently be transferring PHP files, set the Default Permission for Files to 755 (rwrr-xr-x).

    Aptana > Preferences > Aptana > Remote > FTP

    d


  2. Important for Windows Users! If you are using Aptana on a Windows computer, you must configure Aptana to use Unix newline characters.

    Aptana > Preferences > General > Workspace > New text file line delimiter > Other > Unix





  3. NOTE: the previous step won't automatically change the new line characters in your existing files.

    To convert a file that has Windows line endings to use Unix line endings:

    Edit > Select All

    File > Convert Line Delimiters To Unix [default]



  4. Enable execute permission for .php files. Use Aptana to change the file access mode ("chmod"), i.e. to set the read, write, or execute permissions for a file or folder on the server.

    1. In File View, navigate to the file or folder on the server (file permissions are not displayed for the file or folder on your computer).

    2. Right-click the file or folder, and select Properties from the context menu. This will display the Info tab, (shown below).

    Click the checkboxes to change the permissions on a particular file or folder.




Debugging PHP


Keep Aptana Current

Aptana > Help > Check for Updates