4

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)

funerr
  • 197

2 Answers2

7

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

iglvzx
  • 23,818
1

I had the same problem on my system , so I tried to adjust my Xampp like it is shown but It didn't work for me. I tried to adjust it little more and found the problem.

In my case when I type my localhost in the "Use base URL:" I type it like the example above "Use base URL: http://localhost/" but like I said it didn't work for me. The browser opened a blank page.

So I went back and checked the configurations I have made in Xampp.

The Apache port 80 was used by another program , so I changed it to 8080. I went back end tried the following -> "Use base URL: http://localhost:8080/

And it worked.

kenorb
  • 26,615
Mkey5
  • 11