Netbeans Remote Synchronize doesn't list files when a subdirectory is used as upload directory - netbeans

I've setup several sites previously to use Netbeans Remote Synchronization so I can edit files on the server from my machine and it has worked perfectly.
The problem I'm having right now is that when my FTP configuration in Netbeans uses the root folder it lists everything correctly but when I use a sub directory for example website.com/subdir as the upload directory or as the FTP initial directory the sync results come up blank - doesn't list anything at all on the remote side except directories in that sub directory.
My PC is a windows 7 64 bit machine, and the server is a standard shared hosting account running CPanel.
Also, I have been able to run the subdir synchronization on a different pc, could it be the firewall on this one? If so, why does it list the root folder properly?
Has anyone else had this issue? Any suggestions on how to fix it?
Thanks.

found the problem. The FTP path on this PC required the /public_html before the subfolder paths. i.e. essentially ftp://mydomain.com/public_html/path/to/subfolder
This wasn't the case on my laptop as I used the subfolder path right after the domain i.e. ftp://mydomain.com/path/to/subfolder and it worked fine, different versions of netbeans perhaps.

Related

Netbeans: How do I copy remote connections from one computer to another?

I work on 2 different Windows 10 PC's. I have my Netbeans projects set up on my NAS so I can share all the projects. However, how do I copy my remote connections from one machine to the other so I don't have to set up SFTP/FTP for each and every project on my 2nd machine?
Is there a config file somewhere I can copy over?
Windows:
C:\Users[windowsUsername]\AppData\Roaming\NetBeans\7.2.1\config\Preferences\org\netbeans\modules\php\project\RemoteConnections
Ensure Hidden Folders/files are set to visible

Permission denied when overwriting files with Codekit

Using MAMP Pro, I've set up a virtual host for a site where I run Codekit (http://incident57.com/codekit) to autocompile LESS files to its directory. I've set the owner of the host to www, this interferes with Codekit's preferences in some way though and it isn't able to overwrite any file when compiling (the app displays an "EACESS, permission denied" error). Tried several approaches with setting file permissions for different folders but without success. Ideas?
You should be adding to CodeKit the actual folder where your project files exist on disk, not the virtual host that Mamp sets up.

Deployment Issue In Symfony2 - Can't Find Registered Bundles?

I'm transferring my project from the laptop to a test/production server. I'm copying the files to the server via FTP. So far, I can access the /web/config.php file and /web/app_dev.php files alright.
However, when I go to try and load a page it comes up with the following error:
ReflectionException: Class Knp\Menu\ItemInterface does not exist
In the error report, all the files look to be held in the following root directory:
/var/www/vhosts/domain.co.uk/subdomains/dev/httpdocs/
On the laptop however, the root directory was www:
C:\wamp\www
Everything on the test server is held in the httpdocs folder. What do I need to do to fix this error?
Cheers
EDIT:
I have moved everything in to a www folder, held within httpdocs folder. It's completely broken doing that, no pages will load.
The issue occured from an incorrectly configured .htaccess file on the development server.
During the configuration, the root directory wasn't changed to /web. Once this was changed however, the plugin worked.

Recovering netbeans local history

I had a Virtual Machine inside which I had my PHP project. The project was developed using Netbeans, and I used its local history extensively.
My VM Ubuntu installation got corrupted, so I ended up creating a new VM. I was able to copy over most of the files from the VDI (I attached it to the new VM), but I can't figure out where netbeans' local history is saved. I copied over the Netbeans project folder, but the history doesn't seem to be saved here.
Does anybody know how I can recover the Netbeans history?
Local History is kept in the .netbeans settings folder. On my Windows 7 machine that is located at <HOME>/.netbeans/<NB_VERSION>/var/filehistory where HOME is my user home and NB_VERSION is the version of NetBeans (e.g. 7.0).
Unfortunately this is an all or nothing thing. There is no way, that I can tell, to find specific projects. So, if you have local history for projects on your host machine you run the risk of overwriting these.
If you're looking for it on a Mac, the file local history is located at /Library/Application Support/Netbeans//var/filehistory.

Move / backup Netbeans FTP profiles

Trying to figure out how to transfer / back remote connections in netbeans. I have over 100 that I would like to move to a backup computer. Recreating every one of them would be extremely time intensive. I cannot find any way to export the remote profiles and I haven't been able to find the profiles in the .netbeans directory on the local computer.
Is there a file, or any method that would allow moving or backing up the FTP profiles.
The location changed in Netbeans 7.2. The path is the same except AppData\Roaming instead of AppData\Local.
If you are setting up a new windows machine to run Netbeans, you need to first create a dummy remote ftp connection so Netbeans will create the last folder in this file path. Place the .properties files here and then restart Netbeans.
C:\Users\[windowsUsername]\AppData\Roaming\NetBeans\7.2.1\config\Preferences\org\netbeans\modules\php\project\RemoteConnections
The path on Windows would be:
user\.netbeans\6.7\config\Preferences\org\netbeans\modules\php\project\RemoteConnections
For Windows 10:
C:\Users\ (username) \AppData\Roaming\NetBeans\ (netbeans_version) \config\Preferences\org\netbeans\modules\php\project\RemoteConnections