HTTP Error 500.19 - Internal Server Error After CIFS mount - iis

Web site had been running normally on Windows IIS 10 and .net 3.5 until the web site root directory was shared and was then mounted on Ubuntu via:
$ sudo mount -t cifs -o username=,password= //IP/fis /mnt/share
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
\?\D:...\web.config

After hours of googling and trying, I finally solved the problem by using workarounds.
I zipped the web directory and transfer to my Linux notebook. Unzipped it and zipped again on Ubuntu. I then transferred the new zipped file back to Windows. I unzipped it to a a folder which had not ever been mounted via SMB/CIFS. I created a new web site on the ever new folder and used a new pool. Everything was new and everything worked.
I removed all shares but the problem did get resolved until I used the above workaround. Is this a sever bug of IIS?

Related

Error 34513 when trying to re register Azure Backup Server

I have tried downloading the MARS agent, new backup credentials and checked my server time as well as 20 other things. I still get error 34513 when trying to re register my Azure backup server. Anybody??
Delete the files inside C:\Windows\Temp
Reboot the Machine Locate
Locate the Credentials File on C:\ - not on the Desktop, not on a Network Share
Try again, have fun!
For more information: https://azure.microsoft.com/en-in/blog/troubleshooting-common-configuration-issues-with-azure-backup/

Access shared folder using a specific windows credential

I'm currently working with a requirement: download a file from the database then write it to a shared folder. Temporarily, I'm working on a path on my local:
File.WriteAllBytes(path, content);
My problem is the shared folder is on a windows machine and only a specific account will be allowed to write to this folder.
Now I know the basics of Impersonation but I don't know if it is possible to impersonate on a Docker container on a Linux machine.
In short, I want to deploy my application on a Linux container then write a file to a windows shared folder with limited access.
Is the folder on the host or mounted on the host? If so you can then map the host folder to the container. e.g.
C:\> "Hello" > c:\temp\testfile.txt
C:\> docker run -v c:/temp:/tmp busybox cat /tmp/testfile.txt
c:/temp being a local path on the host
/tmp being the path in the container.
More details here: volume-shared-filesystems

Apache: wrong owner and permission of uploaded file

I have a website running on apache server.
Yesterday, I logged in to my server and restarted passenger, apache server.
I restarted using command:
touch /tmp/restart.txt
After that, I noticed that the new uploaded files are changed ownership to paelz (my username) and permission to -rw-------. The files were uploaded by some other users using the website.
The older files has owner apache and permission: -rw-r--r--.
As a result, the website cannot load the new uploaded files. However, it can load the older ones.
If I run chmod 644 on the new uploaded files, the website can load the files normally. However, I want a permanent solution.
I want the new uploaded file owned by apache and has permission as the old ones.
My question is what caused this issue and how can I fix it.
Finally I found the answer.
It is not related to apache. It is related to passenger instead.
https://stackoverflow.com/a/4232091/1319283
By default, passenger will run your app as the user who owns the
config/environment.rb or config.ru file, see
The config/environment.rb is owned by my account so passenger will run the app as my account.

"Unable to perform" issue in IIS Manager (localhost)

When I'm trying to open any app in IIS Manager (local machine) like CGI, Handler mappings etc. I got an error There was an error while performing this operation:
I'm unable to find out this issue.
I installed the hosting bundle again. i.e. repair and then checked if the iis_usr has all access for the wwwroot folder.
This resolved the problem for me.

Magento: Moving Files and Database from windows to linux (Ubuntu)

I have stuck in a problem and have been trying to resolve it for last five days but could not get success up till now. Please help me out...
I have moved all the files and database one of my magento's project from my PC (running windows 7) to laptop (running Ubuntu 14.04 LTS).
- I installed xampp and import the database (Successfully imported)
- Made a virtual host (running fine)
- But as soon as moved my project files in vitualhost folder, it continuously redirecting to http://mylocalhost.local/downloader and throwing "Access Forbidden ERROR 403".
System.log of my magento's project is full of such type of errors
Warning:implexml_load_string():in E:\virtualhosts\myproject\app\code\core\Mage\Core\Model\Layout\Update.php on line 444
Please help me out...
please check the files under www/yourDomain.com/public:
1. permissions of files. should be : 0755
2. group of files : www-data
and then restart apache:
sudo service apache2 restart

Resources