Configuring Aptana 3 to work with PHP & XAMPP

aptana-studioPHPxampp

I have installed XAMPP and aptana.
But when I run my php file it shows me a text format of it.
(I've started XAMPP in the background)
What did I do wrong?

Edit:
Now I think I found the problem, aptana opens the file with the port 8020 and not 80, how can I change that? (to 80)

Best Answer

This is probably not the ideal setup, but this is what I've used:

Setup:

  1. Place your project in your XAMPP directory, e.g. xampp\htdocs\<project>:

    resource

  2. Make sure that Apache is running and accessible via your browser:

    xampp control panel

    localhost

  3. Go to Run > Run Configurations... and create/edit a browser under Web Browser:

    browser

  4. Add the Browser Executable, set Server to Use base URL (e.g. http://localhost/), and select Append project name:

    server


Demonstration:

Now you can open the current page on your XAMPP server by clicking the Run icon dropdown icon and selecting the browser:

run

hello

Related Question