Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Trying to "Run a simple HTTP Server locally to test your web pages"(Using an Aptana feature in Eclipse PHP Perspective)
Trying to "Run a simple HTTP Server locally to test your web pages" [message #1862691] Thu, 21 December 2023 09:46 Go to next message
Eliseu Martínez is currently offline Eliseu MartínezFriend
Messages: 1
Registered: December 2023
Junior Member
Hello everybody. This is my first topic.

I'm currently taking my first PHP course (also my first programming course). Its name is "Open source software web developing" and eventually focuses on Symfony framework.

The course is adapted to Aptana Studio 3 IDE. I tried to run the program in Ubuntu 22.04 without success, so I'm using a Virtual Machine with Windows in it. After some exercises I found out that Eclipse existed and somehow both are related. So I downloaded Eclipse.

Eclipse runs smooth in Ubuntu, but I'm missing an Aptana's feature called Web Browser that lets me open the current file in the project on the web browser super quick. In Eclipse when I run PHP Script as a Web Application I need to validate the project url hitting OK.

Is there a way to use this feature from Aptana, perhaps plugins from the Eclipse marketplace or via "installing new software"?

Thanks in advance.

PS: file attached is a screenshot of the "Run a simple HTTP Server locally to test your web pages" thing from Aptana.
Re: Trying to "Run a simple HTTP Server locally to test your web pages" [message #1863375 is a reply to message #1862691] Tue, 30 January 2024 08:04 Go to previous message
Setua Sutli is currently offline Setua SutliFriend
Messages: 4
Registered: November 2023
Junior Member
While Aptana might offer a convenient "Web Browser" feature, Eclipse has plenty of similar functionality through plugins and built-in options. Here are some ways to achieve the same "run in browser" experience:

1. Built-in Server Launch:

Eclipse comes with a built-in web server you can trigger directly. Here's how:

Right-click your PHP file in the Project Explorer.
Select "Run As" > "Run on Server".
In the dialog box, choose "PHP Web Server" and click "Run".
This should launch a web server and open your file in the default browser.

Browser Launch Plugins:

WebClipse: A popular plugin that provides integrated web server control and browser launch options.
PHP Web Server Launcher: Adds a convenient toolbar button to directly launch your project in the browser.
PHP Debug Bar: Offers various debugging tools, including a built-in browser launch feature.
You can install these plugins from Eclipse Marketplace under "Help" > "Install New Software".

3. Server Configuration:

If you have a dedicated web server like Apache or Nginx set up, you can configure Eclipse to run your project directly on it. This requires setting up server configurations within Eclipse, but offers more flexibility and control.

Bonus Tip: Check your course materials for recommended Eclipse setup instructions specific to the course content. They might have tips on preferred plugins or server configurations.

Don't hesitate to ask if you need further help setting up any of these options! Remember, practice and exploration are key when learning to code. Good luck with your Symfony journey!
Previous Topic:Looking for ideas for IoT projects
Next Topic: Which tools enhance PHP projects?
Goto Forum:
  


Current Time: Wed May 01 23:18:19 GMT 2024

Powered by FUDForum. Page generated in 2.19349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top