I'm using Netbeans to develop an HTML/PHP site and I have the Run Configuration set as follows:
Project URL: http://localhost/JEB
Project Folder: C:\Documents and Settings\John\My Documents\NetBeansProjects\JEB
Source Folder: C:\Documents and Settings\John\My Documents\NetBeansProjects\JEB
Web Root:
The "Copy files from Sources Folder to another location" option is checked and the Copy to Folder location is: C:\xampp\htdocs\JEB.
The problem is, when I edit files in the Project Folder, and then click Run, I'm expecting them to copy to the web location (C:\xampp\htdocs\JEB) and then run in the browser. But that's not happening. The files are not getting copied over so I'm seeing the old versions of the files that were previously in the C:\xampp\htdocs\JEB folder. (I had this working once before, I thought.)
Am I misunderstanding how this works? I thought you were supposed to edit the files in the Source folder, and they would automatically be copied to my web server folder when I ran the project locally. I've checked the NetBeans forums and found one other person with this problem, but no working solution. I was having this problem with Netbeans 6.5.1 so I upgraded to 6.7.1 and still no luck.
Thanks.
I had this problem too and it seemed to be a bug in NetBeans. I was using Ubuntu Linux 9.04 with NetBeans 6.5 and 6.7.1.
When it happened to me, I would delete all of the files in the destination location and then run the project again. When NetBeans sees that there are no files there, it copied the latest version over. From then on it usually worked correctly (i.e. automatically copying files from the source to destination folder every time I ran the project). Sometimes I also had to restart NetBeans for this to work correctly.
Not a solution, but work around.
Create a XAMPP Alias to the directory where your files are located, see: Make XAMPP/Apache serve file outside of htdocs
Related
Attempting to get LAMP working on my 32-bit Ubuntu 18.04 machine. I believe the set-up is close to correct. I have all Apache2, mysql, and PHP software installed. I have an index.php file located in folder /var/www/bookcorner directory which shows up as it should if I enter localhost/index.php in the browser address bar. This file may be edited in nano while saving the changes. However, I cannot use my editor Notepadqq (or presumably others) to edit the file.
Going through the file manager, I can select the file and open it in Notepadqq, but I cannot save it. I get the error, "folder does not exist". If I try a 'Save As' with Notepadqq, I do not see any folders past /var in the directory structure, though they obviously exist. The www folder and subfolders do not show up in Notepadqq.
There are three folders under /var/www which are
bookcorner
html
michaelsbookcorner.com
I have ownership of all of these folders
michaelsbookcorner.com is a live site at Infinityfree.net
I somehow got Apache2 to point to bookcorner for now which is fine. Eventually I would like to select between different websites but I only have one for now existing in another directory. I wish to begin utilizing LAMP rather than uploading PHP files to my hosting site all the time.
What settings/permissions/etc could I have missed here in order to get this working properly?
If I start debugging on my IntelliJ, the IDE open the file which I want to debug in a new tab as a non-project file, and I don't know how I can solve this.
I switched the OS from Ubuntu 18.04 to 19.04 and reinstalled IntelliJ but the .idea folder in the project is the same, so all marked folders should be the same as well. On Ubuntu 18.04 everything worked with debugging.
Can anyone tell me how I can solve this problem?
Here is a image:
I found the issue. I've a sym-link from the HDD where the project is located to my home folder and open the project from the home folder, so may the ide or debugger gets the real path and think that the file isn't a project file >.<
Report it on the issue tracker https://youtrack.jetbrains.com/issue/IDEA-125379
As a workaround try to use this plugin https://plugins.jetbrains.com/plugin/7635-non-project-files-unlocker
I downloaded the pdt plugin for eclipse for php development. I have mamp installed , with the web port set at 80. The name of my project is PHPTest.
I have one file in it ,called helloworld.php.
Hello world just echoes A text.
This project is located at
/Users/MYUSERNAME/EclipseProjects
When I run the project by right clicking on it, It shows this error in my browser :
Not Found
The requested URL /PHPTest/helloworld.php was not found on this
server.
So, why does this happen ? Is there some setting that I am missing?
or is the only way to get this running is to change the project's directory to the public html folder of mamp ?
This isn't related to xdebug support. Your HTTP server know nothing about your projects. you can fix this in three way:
Manually copy/paste project to your MAMP document root dir (default is /Applications/MAMP/httpdocs)
Change MAMP document root dir to workspace: /Users/MYUSERNAME/EclipseProjects (easies way)
Move your workspace to document root dir (/Applications/MAMP/httpdocs)
On Eclipse i installed the PHP Development Tools and everything is cool, except i can't configure it to run on my local Apache...
I saw something like placing all my project files in some htdocs directory of Apache directory... but its kinda absurd...
I already tried:
http://www.eclipse.org/pdt/help/html/running_php_web_pages.htm
and
http://www.eclipse.org/pdt/help/html/php_servers.htm#Adding_servers
Which, as i understood, is linking calls from localhost/[project-name] (which directory is placed as htdocs) to my original repository x:/y/[project-name], but it doesn't work...
You might need to setup the workspace for your eclipse. The directory you set as workspace works as the document root directory and you don't need to place everything in htdocs. Hope this helps.
I am trying to set up the PHP debugger in Aptana Studio 3.3 to work with MAMP. I have a local project folder which is separate from the MAMP/htdocs folder; I 'deploy' to MAMP by copying the files from my local project folder to htdocs.
I've set up Aptana Studio->Editors->PHP->PHP Interpreters by adding a new interpreter of XDebug debugger type, with an executable path and PHP ini file pointing to the appropriate location and file for my MAMP install (/Applications/MAMP/bin/php5.4.4[/bin/php || /conf/php.ini]). The PHP debugger is set to XDebug. Aptana seemed to like that OK.
But, when I open a PHP file in my htdocs folder and try to set a breakpoint, I get the error "The file you are trying to place a breakpoint on is an external (non-workspace) file. Breakpoints are supported for PHP files that are located inside projects."
And, if I try to set a breakpoint and start the debugger in the same PHP file (but in my local project folder/workspace rather than htdocs), nothing happens. This makes sense as the file isn't under htdocs so MAMP doesn't know about it.
This would imply that my local project folder and my MAMP/htdocs project folder have to be one and the same in order to debug. I'd rather keep my project files separate from htdocs.
I would much appreciate your advice on 1) how to set up the PHP debugger in MAMP to get it to work at all (what am I doing wrong?), and 2) is it possible to set up the debugger to work so I can have my local project folder separate from the MAMP/htdocs folder?
There are other StackOverflow answers but they all describe how to set things up for earlier versions of Aptana Studio which didn't include the PHP debugger.
Thanks.