I've recently been wanting to start writing PHP websites again and installed Netbeans onto Linux Mint.
So I set up the project folder and the Web root as I would have done in netbeans 8.2, the last version I used.
It seems this time the files don't get copied to /var/www/html but instead get copied to /proc/12424/var/www/html.
I have tried so many combinations to try and get it to copy correctly but it does not.
So I installed Netbeans 8.2 to see if I have forgotten something in the project creation process. In 8.2 the copy process works perfectly. So what is the deal with 12.3? Does anyone know why it is copying to the proc folder and how I can change it?
Numerous Google searches has yielded no results.
Related
I have latest Ubuntu 18, also Apache2, php 7.2, mysql.
I have rather old simple php application, written on php4 (at least not older than php5).
I have a task to run this application in this environment, to install php4 is not a variant. Possibly there are some compability mode to run this application by php7.2 as php4?
I succeded to open index.php in FireFox, but also it seems, that it is not shown correctly. I run that application also on Windows\IIS and it works perfectly. But on Ubuntu Application has a menu and i see only part of it. Also any item in that menu is created through localization links, like:
application\en\sitemap
application\en\news
Physically i have folders sitemap, news and etc, just under application root folder. But FireFox is not able to open application\en\news, because it seems it is trying to reach folder EN, which is not exist, of course. So neither menu item could be opened. Though on Windows it works from the start!
Tell me, please, direction for futher search.
Is there a compability mode php7.2-php4?
How should this virtual links en-ru work - should i configure php or there should be some points in application config.php for this issue?
Thanks
Today I installed netbeans on my home computer to do some work at home. I installed the java 8 JDK (151) and installed netbeans with everything included (didn't do a custom install). I then pulled my project down from github.
My install folder for netbeans is on E:\netbeans
My project folder is the default on c:
I loaded the project, turned on XAMPP and ran it. Great, it works.
Then I made a change to the HTML (fixes a spelling mistake I made). Ran it again. It didn't take the change.
I made sure I had saved - still borked
I made sure Firefox was not caching my page - still borked
I tried it in a different browser, one that had never opened the project before - borked
I rebooted netbeans - borked
I deleted the cache in netbeans -borked
I rebooted my computer - borked.
Google searches for "Netbeans not applying changes" or similar things are not returning me with anything useful (all of the same it is the browsers cache, I have caching turned off in Firefox using about:config and I turned of memory and cache)
Windows 10 system
Netbeans 8.2 up to date (there are no updates available)
Project is HTML,PHP to a XAMPP database.
Anyone have some advice on this?
Edit: as suggested I ran it in Admin mode. It still behaved the same.
I am running it through Netbeans but I then just navigated to the page without clicking run in netbeans and it is the same.
So I figured this out and will post it here in case anyone else looks into it.
I installed netbeans and xampp on my E drive. The project I was editing was on the C drive in xampp/htdocs. When I would save it would save there. I am unsure how this happened but on the E drive was another copy of the project. When I ran the project it would run from the folder E:\xampp\htdocs instead of where the project was in c:\xampp\htdocs. Keep in mind, when you install xampp is will make the C: folder regardless of where you say to install it.
Anyway, if you are having this problem and you have two hard drives look and make sure there is not a duplicate project in the two htdocs. If there is, you might be saving to one and running the other.
I was having this same problem. Try ignoring cached content when reloading the page. These commands should work on Chrome, Firefox, and Edge:
For PC:
Ctrl + Shift + R
For Mac:
Command + Shift + R
Source:
localhost Won't Immediately Update
I'm trying to test a php app I'm working on in my Netbeans environment, and so I'm setting it up to run on a local Apache server. It seems to work fine when I manually copy my project into the htdocs folder, but when I try to configure Netbeans to automatically copy the sources, It tells me "Target folder cannot be created". I've tried changing the folder from read-only, including everything mentioned here but it doesn't seem to stick (Probably relevant to mention that I'm on Windows 7)
I could just keep manually copying it every time I want to test it, but that would be a major headache. Any ideas?
As I had guessed, it was a Windows permissions issue. After doing pretty much the same thing over and over without the change sticking, it finally stuck, and I was able to get things working the way I wanted. Sigh...
I have this problem getting my newly created php project on Netbeans work on Ubuntu.
I've tried to place the source folder of the project in the /lampp/htdocs folder or selected the copy location option on the 3rd step of creating the project, yet none of them worked.
Here the version of the softwares I'm using:
Netbeans 7.1
LAMPP (newly download)
Ubuntu 11.10 (up-to-date)
I would be thankful if steps can be provided.
Ok I'll give you everything I usually do From the moment I download a new version of Ubuntu.
After installing Ubuntu I download XAMPP for Linux and follow their installation guide. Pay extra care to the permission when extracting XAMPP. Be sure you extracted it in the correct folder /opt.
You must start XAMPP manually by using the command /opt/lampp/lampp start. You will need root access for that. If everthing was started normally you will get the following message in the terminal:
Starting XAMPP 1.7.7...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
Navigate to http://localhost or http://127.0.0.1 you should see the following screen.
(source: techblissonline.com)
Select your favorite language then voila your installation is complete.
create a new Netbeans project and call it test for example inside /opt/lampp/htdocs/.
Create an index.php file inside /opt/lampp/htdocs/test/ and put echo phpinfo() inside it.
Navigate to http://localhost/test/index.php and you should get the page you just wrote.
Notes:
Make sure all php extensions that you need are already installed by checking the phpinfo() page in XAMPP.
You would probably want to start XAMPP each time you start your PC instead of doing it manually every time. There are several ways to do that if you google it.
Have you tried all these steps and still can't get your project running ?
I am running PHP files in my NetBeans with a shell script command. So far so good. I can run individual files without any problem. Sometimes, however, I would like to run all the files in a directory (and it's subdirectories). I tried selecting the directory and hitting the shortcut for "Run" but nothing happens. If I select multiple files and hit "Run" only the last one selected will be run.
I am using the latest NetBeans 7.0.1 on MacOS 10.6. Thanks.
Never heard of such a feature. What I'd do with NetBeans is create a php application and in the main file write some code calling each php file... it will look ugly but I think it's the only way