Hello all web surfers! I am writing my first blog and in my first blog I would like to share a solution to a problem on Aptana Studio 3 a free and effective website design program. I had been spending quite some time figuring out how I could load a PHP web wage using Aptana Studio 3 and I finally managed to come up with a solution. So this is for all the Mac users who are using Aptana Studio 3 for website development.
![How To Add Php Executable Location On Aptana Studio 3 For Mac How To Add Php Executable Location On Aptana Studio 3 For Mac](/uploads/1/2/6/4/126418695/619043109.png)
Aptana Studio supports common web-application coding languages such as JavaScript, AJAX, PHP, and Ruby on Rails as well as HTML. Aptana Studio supports common web-application coding languages such as JavaScript, AJAX, PHP, and Ruby on Rails as well as HTML and CSS. With Aptana Studio you can also develop applications.
So here we go ….
When you try to run a PHP webpage to preview the content and look of your webpage you will get this message:
![How to install aptana studio 3 on mac How to install aptana studio 3 on mac](/uploads/1/2/6/4/126418695/812547627.png)
The is because is Aptana is trying to execute the file on a web server. So you will need to link the PHP file to a server that the file and you Aptana Studio 3 Program will recognise and your webpage can then be successfully displayed.
Click the ok and the Preference window will automatically pop up, this is Preferences for the PHP Interpreters as shown on the left panel under PHP drop down menu options. Click the Add button
Now you will see the Add New PHP Executable window , this is the part where you must make sure that the Name , Executable file and PHP ini file must have correct paths otherwise it will not allow you to click the finish button and you will keep getting error messages.
To add the correct Executable path and PHP ini file you will need to download MAMP program as the Aptana Studio 3 recognises the MAMP files. You can go to this link to download MAMP: http://www.mamp.info/en/.
To locate ini file you will need to browse the folders in the WAMP application , click Browse for the Executable Path and find the MAMP program (usually found in Application on your MAC). One you locate WAMP click the program and you will see a various versions of Php5 folders click the php folder → php5.5.14 → conf and then select the php ini
Press the open button and the path will be automatically displayed for the ini file.
For the Executable Path go to the bin folder (as shown on above image) also located in the php5.5.14 folder and select the PHP executable file program. You can enter anything in the Name, I have called it MAMP as it is more convenient I guess.
You will now go back to the Preferences windows and you can press ok as the problem has now been resolved. I had to go through a bit of trial and error phase to get this correct.
Hope this helps thank you all!
Some users who use Aptana Studio 3 for Web development may at some point experience this issue especially after configuring php executable which allows a web server to run with Aptana Studio.
The XDebugger port for PHP executable webpages is usually assigned to port 9000, however if this is already in use then you are likely to get them message:
“The Debug port you requested 9000 is already in use. Please select a different port in the PHP debug preferences.”
So the natural step would be to add a new port, possibly port 9001 or 9002? However even with a new assigned port for the web server, the PHP program refuses to debug and still give the same message which can be very puzzling.
To resolve it is best to select another version of the php executable file path from the various folders in WAMP explorer window. So you will need to go back to the PHP executable Preferences window , select the already added php file path and click the Edit button.
When I chose the php executable file from the php 5.5.14 , I found I was no longer getting the php debugger port problem message. Hope this works for you too, try selecting from the folders as well as one of them is bound to work hopefully.