Failed to open temporary output file: Permission denied - azerothcore

ubuntu 20.04 install azeronthcore with docker,run ./acore.sh docker build , i had tried
several times but still not working.anyone could help me with this?thx!
root#ubuntu:~/azerothcore-wotlk#
dos2unix: Failed to open temporary output file: Permission denied
dos2unix: problems converting file env/dist/etc/authserver.conf.dockerdist to file
env/dist/etc/authserver.conf.dockerdist
dos2unix: Failed to open temporary output file: Permission denied
dos2unix: problems converting file env/dist/etc/worldserver.conf.dockerdist to file
env/dist/etc/worldserver.conf.dockerdist

Make sure you have permission to create a file in directory env/dist/etc/. dos2unix writes the result first to a temporary file. When something goes wrong in the middle, you still have the original file.

Related

Issues with moving WordPress folder to var/www/html (before/after)

I am trying to install WordPress on my virtual machine following the official guide at here
Somehow I could not move my wordpress file to the respective folder var/www/html.
The following error are given.
cp: cannot stat ‘~r’: No such file or directory
cp: cannot create regular file ‘/var/www/html/index.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/license.txt’: Permission denied
cp: cannot create regular file ‘/var/www/html/readme.html’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-activate.php’: Permission denied
cp: omitting directory ‘/home/caleb/wordpress/wp-admin’
cp: cannot create regular file ‘/var/www/html/wp-blog-header.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-comments-post.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-config.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-config.php~’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-config-sample.php’: Permission denied
cp: omitting directory ‘/home/caleb/wordpress/wp-content’
cp: cannot create regular file ‘/var/www/html/wp-cron.php’: Permission denied
cp: omitting directory ‘/home/caleb/wordpress/wp-includes’
cp: cannot create regular file ‘/var/www/html/wp-links-opml.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-load.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-login.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-mail.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-settings.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-signup.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/wp-trackback.php’: Permission denied
cp: cannot create regular file ‘/var/www/html/xmlrpc.php’: Permission denied
So after checking the location, I found that I don't have a var/www/html folder due to me removing apache2 previously in a LEMP installation guide.
So I tried to reinstall apache via
sudo apt-get install apache2
After installing, I found that the var/www/html is now available. But still I could not copy the files into the respective folder without using sudo, which is not mentioned in the guide. After copying the files into the var/www/html directory, I am supposed to access my IP address to continue with WordPress installation. Which I failed as well, as the browser directed me to Nginx just like in the LEMP guide instead of WordPress installation page in the WordPress guide. Any idea?
Edit: Tried stopping Nginx service and it does not work. (Does not redirect me to WordPress page)
TL/DR: WordPress folder does not move to var/www/html like how the guide did, and after using sudo to move the folder, localhost does not go to WordPress installation page.
You should have to use sudo to move anything into /var/www/html/.
Use mv not cp
sudo mv /example.com /var/www/html/

Rsync Specific Listed Files from specified Server Directory

I'd like to rsync specified files from a specific server folder to my local directory (in which I am running the command).
However, I'm getting the error failed: No such file or directory (2). There seems to be something wrong with my syntax and I'm not sure its picking up the source directory properly
This is my command...
rsync -az . remoteSite.com::remoteFolder/remoteSubFolder/ --files-from=filelist.txt
filelist.txt, which it seems to be finding, contains filenames within remoteSubFolder
file1.xml
file2.xml
etc
What am I doing wrong?
Thanks to #Gordon Davisson.
I now understand that the full stop represents the local directory and goes after the remote host and directory.
rsync -az --files-from=filelist.txt remoteSite.com::remoteFolder/remoteSubFolder/ .

symfony 3 curl_exec(): Unable to create temporary file

I am getting:
Warning: curl_exec(): Unable to create temporary file, Check permissions in temporary files directory.
EDIT:
ERROR:
Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: curl_exec(): Unable to create temporary file, Check permissions in temporary files directory." at /data/web/virtuals/180989/virtual/www/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 40
I have tried to clear cache, to set some directories chmod 777, nothing changed.
Everything works perfectly until i uploaded my project on a hosting when I visit specific url it shows me an error.
What should i do with that?

problems with sudo mv file /non_existing_folder - file disappeared

I was trying to move a RubyOnRails.txt file into a /RUBY directory, so for some reason I typed:
mv RubyOnRails.txt /Ruby"
And I got this error: mv: cannot move ‘Untitled Document’ to ‘/Ruby’: Permission denied
Obviously, I typed: sudo mv RubyOnRails.txt /Ruby
And then, I understood my error, the folder wasn't /Ruby, was /RUBY.
Now the file is gone, and I can't find it anywhere.
There is some way to find it or recover it?
The file isn't gone, it's just renamed to Ruby and it's in root directory of your system /
You can still move it where you want like that sudo mv /Ruby your_destination

PHPUnit's TextUI/command.php not found

I installed phpunit for my symfony2 project following this:
How to use phpunit installed from composer?
But I get the following error now:
Warning: include(C:\Program Files (x86)\Zend\Apache2\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\composer\ClassLoader.php on line 150
The file does exist and is in the autoload_classmap file, so I'm unsure why I receive this error when I run vendor/bin/phpunit -c app
You only should fix your basePath issue:
instead of this:
C:\Program Files (x86)\Zend\Apache2\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php
it should be this :
C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php
You should go and read in line 150 of composer\ClassLoader.php and if possible add some echo or var_dump to debug and see the content of the variables used there that point to a wrong path.
Program Files (x86)\Zend\Apache2\
show up twice in the include error but not the open stream error.
open stream: No such file or directory in C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\composer\ClassLoader.php on line 150

Resources