Trouble updating my site to Drupal 7.34. Maybe problems connecting programs to webserver - drupal-7

I am new to this, and I hope someone can help me with the supposedly simple task of downloading an update of Drupal. A few months ago I finally created a website at Unoeuro and with Drupal. I even got around to chose themes and put content in.
My system: Windows 7, Webserver Apache, host: Unoeuro, run Drupal 7.32 just fine, besides the warning message on most of the pages on my site's Admin.
Problem: A little while ago Drupal started saying "There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates."
When I follow the link, it says: "Manual updates required" and "Updates of Drupal core are not supported at this time."
Do you think THAT is the reason, why I can't make it work?
However, since there is a link to the latest update, Drupal 7.34. and it is coloured red and looks like I need it.
When I follow the Update link, I'm told to download it through one of three methods- https://www.drupal.org/project/drupal After checking my Systemrequirements through NetCraft.com, reading the Installation Guide, and downloading and extracting the 7.34 zip-file with Zipwizzard, my command prompt doesn't know, what I'm talking about.
I've tried alsmost every combination of methods, both the Drush and Command Prompt, and different zip-files and tar-files and extracting in every command prompt.
Problem: It seems like none of them are not connected to a 'prober Drupal environment', as they say.
I've tried changing the PATH to the drupal-7.34 folder, where the environment should be (I suppose, because I just downloaded it). But the command prompt still says '... is not recognized as an internal or external command, operable program or batch file' or that the command is not made in a 'prober Drupal Environment'.
I don't know what I'm doing wrong and I hope someone can give me a hint about it.

Bro you need to be in the correct folder to use drush to update your site. If you are running a non-multi site instance move to [drupal_root]/sites/all and run the command "drush up", press y a few times and enjoy. SO thats:
ssh selsen#selsonssite.com
cd [drupal_root]/sites/all
drush up -y
PS using -y on drush up means you don't have to press y multiple times.
You can also contact me # josh#hamrent.com for more Drupal support.

Related

SQLAlchemy/pgAdmin: Error: password authentication failed for user "root"

I'm conducting a study and I need to store some data. I found an open source data scraper and parser online: https://github.com/hicsail/materials
I've followed some instructions (some of which but not all came from here) and
installed Postgres, created a docker-compose.yml file, and created a config file:
Above is the config file, and this is the .yml file
I started by going into the pgAdmin folder and running "docker-compose up", after which, this was the result:
I'm not sure if the "no privileges flag" means anything. Anyway, after this, I opened up a localhost:5050 in my browser and logged into pgAdmin.
I named the database "materials" as this was what it was supposed to be named.
Same thing with the username and password; both were named "root". However, when I run the command to parse the data, I'm getting this error:
I've been stuck on this for a long time now, and I can't seem to find any solution. This is running in a python2.7 conda environment, as per the requirements. These were the other installed libraries (I'm not 100% sure those were the exact versions, but I tried to get them as close as possible).
psycopg2==2.7.3.1
requests>=2.20.0
SQLAlchemy==1.0.9
wheel==0.24.0
If I need to clarify anything please let me know.
Thanks.
I found an answer for this. I had to go into services, then to postgres, and stop it from running. I then had to kill the port "5432" and run it again.

Mongo DB - bash: mongo: command not found

So I have been learning about databases and I'm new to it. In my udemy course the video was outdated for the installation of MngoDB version 6.0.1. The video instructor showed a way to install it using the vim editor. However it didn't work for me. Then I discovered that many people are going through the same problem and a guy told a solution to delete the file created with vim and instead use "system environment variable". I edited the path by adding a new one in which I did exactly as the guy mentioned to specify the 'bin' folder inside mongoDB in the Program files. And when I tried to run the 'mongod' command inside hyper I got this at the last line.
{"t":{"$date":"2022-09-09T10:05:27.885+05:30"},"s":"I", "c":"NETWORK", "id":23016,
"ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
The instructor did mention that I should see something like "Waiting for connections at port 27017". However the last line in hyper doesn't explicitly mention it in one line, but I think that's fine. Because the instructor was using a mac and I am using a Windows device. Now here comes the main error. When I open a new tab in Hyper and type 'mongo', I get this error
$ mongo
bash: mongo: command not found
I've researched a lot on stackoverflow but nothing helped me in the end. However I can provide with something that might help in figuring out the solution. Here's something unusual that I noticed. The 'bin' folder in C:/ProgramFiles/MongoDB/Server/6.0 seems to contain very few files. It has only 2 .exe applications namely - 'mongod.exe' & 'mongos.exe'. There is no 'mongo.exe' that my instructor has on her computer. I think this might be the root of the problem, however I'm not sure. also there are other files that seem to be missing. But I would like to mention that I've not tampered the files even once since I've installed them from the setup. I hope this is enough for you guys to solve this. Please help me.

Google Appengine Deployment Security Woes

We are having trouble deploying our Google Appengine application. We get the following error message
from the indicated deployment command at the Unix shell prompt.
/home/leffstudent/appengine/bin/appcfg.sh update ~/u3/web/war -p proxy.wiu.edu:8080
The following URL can be used to authenticate:
https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id=550516889912.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/appengine.admin%20https://www.googleapis.com/auth/cloud-platform
Attempting to open it in your browser now.
Unable to open browser. Please open the URL above and copy the resulting code.
Please enter code:
There is no browser on this computer, a Linux virtual machine, used as the programming opportunity for the School of
Computer Sciences. We simply use putty to log in.
I cut and pasted the address and entered into Chrome into the computer that has run putty. I get the code in that browser. I cut that and tried to paste it back
into the browser. NO luck.
I get
"java.net.ConnectException: Connection refused"
(This has been difficult because this Putty does not seem to have menu items for cut and paste.)
I tried about seven times. Several times, I also tried simply typing the code in carefully. No luck.
The graduate student on the project also tried themselves--no luck!
Thanks for any insight. In particular, it seems I should I ask the system administrator who set up the disk slice with our School of Computer Sciences'
server for a "browser." What should I specifically ask for? I did not see any documentation of what the google appcfg.sh program is doing when it tries to "open it in your browser now."
We have a project on which five people have worked over several year time frame that is dead in the water because we can no longer
deploy.
I'm not sure why the code isn't working - it should. As a work-around why not:
push the code to a git repo (e.g. bitbucket)
pull it to a machine that does have a browser
Set up the browser-machine to run GCloud under the account you're hoping to authenticate with
Deploy from there

Neo4j 2.0.0-RC1 unable to install as windows service

I used to install Neo4j 2.0.0-M05 as windows service, this worked great. With 2.0.0-RC1 it doesn't any more.
Intro
With 2.0.0-RC1 I can download an installer. Seems that this installer does not have an option to install Neo4j as service. Also it doesn't let you set some directories (I like everything in C:\apache\neo4j); some stuff is being stored in my user directory. And it doesn't remember the location of the database. So that leaves the zip as only real alternative, though the zip file comes in only one version while the installer comes in 32bits and 64bits??
Anyway now trying with the zip package I have to run a .bat file just as before (i'm used to this). But when i try install, i get:
C:\apache\neo4j\bin>Neo4jInstaller.bat install
"WARNING: this installer is deprecated and may not be the optimal way to install Neo4j on your system."
"Please see the Neo4j Manual for up to date information on installing Neo4j."
Press any key to continue
Two things are weird.
It's the only option to install neo4j as service, so how can it be deprecated?
Press any key to continue only response to the enter key.
Problem
Continuing on the the real problem:
Press any key to continue
[SC] CreateService SUCCESS
[SC] StartService FAILED 87:
The parameter is incorrect.
Workaround
I removed the .bat files from 2.0.0-RC1 and copied the 2.0.0-M05 bat files over to the new version. It seems to start the new version without a problem.
Thanks for the feedback. There are open github issues related to much of this, which we'll clean up before going to GA. Even then, your conclusion is correct, that for now installation as a service requires downloading the .zip distribution. We'll make that more clear in the download page.
Generally, installation as a windows service is something we're working to improve. I'd love to chat with you a bit about your particular deployment scenario. Please drop me a line at andreas#neotechnology.com.
Best,
Andreas

Make netbeans use virtual box guest installation of phpunit

We use netbean's phpunit / unit testing plugins for all our testing. We used to use xampp and point netbeans at our our .bat file from the xampp installation. We recently started using vagrant and are now running our dev environment in virtual box. I would like to make netbeans use the installation of phpunit within the virtual machine. This would save us from having to have both installed. Is this even possible? Netbeans seems to want a file location and I am stumped as to how I can go about doing this.
[EDIT] I've created a custom batch file that uses vbox guestconrols to forward the commands to the VMs installation of phpunit. I am going to then point netbeans at my custom .bat file. My problem is, now, that guestcontrols doesn't seem to be forwarding --bootstrap. It seems to be trying to take it and use it, rather than forward it along. The docs say that all the additional arguments will just be passed on, but that doesn't seem to be the case. Here is what I am using in my my_phpunit.bat :
[my_phpunit.bat]
#echo off
if "%VBoxManage%" == "" set VBoxManage=C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
"%VBoxManage%" "--nologo" "guestcontrol" "<my_vm_name>" "execute" "--image" "/usr/bin/php5" "/usr/bin/phpunit" "--verbose" "--username" "<user>" "--password" "<pass>" "--wait-stdout" "--wait-stderr" "CustomNetbeansTestSuite" "<path/to/test/suite>" "--bootstrap" "<path/to/bootstrap>" %7
I am almost there, as running the bat file without the bootstrap option at the end takes me to the unit test. I am getting exceptions because of some autoloader issues(no bootstrap), but if I can figure out a better way to forward these command line arguments to
[EDIT 2]
I think I've finally solved this, but I need to get some issues with my guest OS in order. Once I've been able to test it a bit more, I'll post the final solution. I solved the Vbox guest control issue by adding "--" before I actually sent the parameters that should be forwarded. It said to do so in the docs, but it wasn't entirely clear to me at first.
I just wanted to update that I never actually got the .bat file to work. I think I got pretty close, but I was hung up on some linux CLI output that I couldn't suppress. The .bat file that I ended up with was:
# .bat example
https://pastebin.com/BX1xnL3q
I ended up moving to PhpStorm and everything worked out of the box. So, if you're still using netbeans, you can try and give that a shot. Maybe someone with more unix / linux experience can fix the issues I was having. I feel I was like 99% there with it.

Resources