New answers tagged netbeans
You must have configured NetBeans to use the system tomcat instance which fails because NetBeans doesn't and shouldn't have permissions to write to /usr/share/... (i.e. don't do what you've been told in (the) other answer(s)). Instead configure NetBeans to use a tomcat instance in your home directory, e.g. by downloading a zip from their download site, ...
You have to try chown -R /usr/share/tomcat7/logs to get the current userID(have access to create the logs directory in tomcat7. It seems the userID that you are using to start NetBeans doesn't have that permission.
If you'd installed the netbeans through Ubuntu software center it is enough to use the same to uninstall it. It is a very simple process. Go to Ubuntu software center and select the select the netbeans ide and uninstall it. If it is installed via terminal, then locate the netbean directory normally(usr/local/netbean) and run the uninstall file uninstall.sh. ...
The new default root folder of apache is /var/www/html, thus your Source folder should read /var/www/html/PhpProject2.
From your log, it looks like an older version of package (which maybe unofficial ) is causing issue during installation. The answer to your question is well explained with the solution here : askubuntu: libapache-mod5-php- installation issue Follow the solution there. If problem exists please comment.
After installing as root I had a similar problem. I could run as root, but running as a normal user would crash. Resetting/removing the user directories solved it: sudo rm -rf /home/[user]/.netbeans /home/[user]/.cache/netbeans
Right click on any .js files and select "properties" option and in "properties" dialog box, go to "open with" tab and select netbeans from there and if netbeans is not listed there, go to "add" button and show the location of netbeans and set it as default app to handle this type of files.
Top 50 recent answers are included