[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.phoenix] Re: Unable to get WTP/PHPEclipse/XAMPP to work for Phoenix pages testing

I start xampp from the button in the toolbar and it says
### APACHE + MYSQL IS STARTING NOW ###

http://localhost in Firefox says "Access forbidden!"

My apache (part of xampp) httpd.conf includes
DocumentRoot "c:/ews/phoenixPTP/ptp"
That is, indeed, my workspace and project folder location.

I don't have an index.php (not ready to check it in yet)
but am working with index2.php -- could that be it?
http://localhost/index2.php  also gives "access forbidden"
(I added an index.php and this didn't help either)

>> 2. Does your xampp user have full access to that directory?
Full access? I'm the only user on this machine and i have full Admin rights.

> What script is loaded when you start the phpeclipse browser?
If I close the PHP Browser view and reopen it, nothing is loaded.
Is that what you are asking?

>Maybe it's mysql that gives you the error. What user are you using to >access the db?
Just me, the only user.


PHPBrowser correctly shows e.g. http://eclipse.org

All the "external tools" preferences look like they point to the
files in my installation.

HEY, the preferences (PHPeclipse>Project Defaults) included a DocumentRoot setting that differed from httpd.conf!
I fixed it and restarted xampp and still get access forbidden.
Restarted eclipse, restarted xampp and still get it.


Also, I don't have the include files from Denis' on the eclipse.org phoenix website. do i need them?
The first line of php file includes


require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'

Thanks for any help!


Stefan Langer wrote:
Have you tested if your xampp installation actually works? Start your xampp and point your browser at http://localhost/ it should display some sort of welcome page. If it does not than your xampp is misconfigured. Several issues could be the case:
1. Does document root point at the correct location
2. Does your xampp user have full access to that directory? If not then you might get the access forbidden error.


What script is loaded when you start the phpeclipse browser? Maybe it's mysql that gives you the error. What user are you using to access the db?

Hope that helps

Regards
Stefan