I'm getting "500 : Command not understood" in Windows server IIS - iis

I'm getting "500 : Command not understood" in IIS when I try to copy and paste a file to a folder in a ftp server, using a particular ftp username. Getting the same error while used filezilla to upload a file to the folder.
We also tried giving read, write, modify rights to that ftp user, no use.
If anybody need any details about the server to get a clear idea, I'll provide.

I think you are trying to set UNIX-like permissions on Windows Server IIS.
you really don't need FTP to change permissions. The ACL on Windows is extremely different from UNIX. Windows has so many other access attributes other than read/write/execute. However there is an equivalent of CHMOD command on 2k3 which is called cacls.exe. You can type cacls.exe /? on command prompt to get detailed help or search the web for it.
You also go through the link http://support.microsoft.com/kb/271071 to know more about IIS specific permission required etc.
happy to help :)

Related

Error: Cannot find module './commands/banner.js'

I recently pushed my entire bot to a hosting service called "Vultr" and tried running my bot but I was encountered with the error: Error: Cannot find module './commands/banner.js' and I don't know why this is happening as it works perfectly fine locally on my pc. If anyone knows why this is happening and the solution please provide how to fix it. I have provided images below to help.
Thanks, Gianni.
In my ubuntu terminal:
The code:
FileZilla directory: (Both commands folders have the javascript files)
Looking at Filezilla the folder name at Mythra is Commands, not commands (as written in your code). If that is a Linux server, folders are case sensitive unlike Windows machines which ignore case.
I would fix the folder names on your local machine and repush the site. If I remember right you can't simply change the name only by case, it doesn't keep. You need to change the folder to a different name then to what you want. For example:
Commands -> cCommands -> commands

How update a Azure Website via FTP transfer

My requirement is to transfer files like DDL's and config files to the Azure Website from my local system.
I have gone through links and have followed following steps :
Open FTP_Server_name_from_Publish_profile
Supplied User name and password and Able to connect
Cd Site\wwwroot
put "Some_File"
Getting following error:
200 PORT command successful.
150 Opening ASCII mode data connection.
When I am trying to connect via WinSCP client and transferring files via GUI it is working fine.
Also, I tried the above steps for transferring files to the sample FTP servers, and it is working Fine.
Let me know where I am going wrong.
It's not clear what you ask for. I assume you want to automate an update of Azure Website.
As you have succeeded using WinSCP GUI, you can do the same using WinSCP scripting. The WinSCP script would look like:
open ftps://user:mypassword#waws-prod-am1-234.ftp.azurewebsites.windows.net/
put C:\myjob\* /site/wwwroot/App_Data/jobs/type/name/
exit
For details see Automating WebJob Update in WinSCP documentation.

retrieving files from NAS linux network in PHP

I'm working on a php project where a particular feature will have to access the files stored from an external directory:Network Attached Storage(linux). Lets say the path is /volume1/accounts and this is mounted in the linux server where my site is hosted using apache. I will have to retrieve files from that directory. is there a way in PHP to do that? My client says that its already been mounted.
No matter what I do I cant access using these test codes
print "<pre>".print_r(scandir("/volume1/accounts/"), true)."</pre>";
print "<pre>".print_r(scandir("192.168.0.233/volume1/accounts"), true)."</pre>";
print "<pre>".print_r(scandir("192.168.0.233:/volume1/accounts"), true)."</pre>";
How am I suppose to do it? Please help me.
Generally, PHP engine is executed with apache server's privileges. So mounted directory has no permissions or ownership for apache server, It'll be not able to show file lists. Could you try to make directory on /volume1/accounts/ and change ownership and permissions? If apache server is working with apache:apache ownership, please change ownership of directory as same.

Cannot edit files in IIS localhost server

I have to edit a website on local server. I use Windows Server 2012 and IIS. When I try to save a modified file I only get "access denied" error. Do I need to shut down the server before making changes and then restarting it or am I missing permissions for example in the wwwroot folder for IIS_IUSRS?
I have never used WS2012 or IIS before.
You cannot edit files directly in the wwwroot. You need to copy the file/folder out of inetpub to make your edits then paste it back into the wwwroot. This is by design I am afraid.
I was able to do edits directly in the wwwroot files by creating a local user account for myself on the server and giving it FULL access (I am also in the Administrators group - but that was not enough to make it work), then setting the user full access on the SHARE I use to get to the server (via UNC path). Allows edits directly to my live site.

how to connect and read files of an external Linux server through VB.net programming

I want to connect to a Linux server and read some logs from a folder located in the Linux server through a program written in VB.net.
Is it possible or do I need to have some extra tools or softwares to do the above. (not through Putty or anything similar to it)
Automation Requirements: Go to a folder located in Linux server. Check for a log file. If there are no log files created today then send a mail to me.
I need to write a vb program in VS-2005 to do the above task. Can someone give me a head start or how to go about it.
I am new to Vb programming so any help would be appreciated.
i can neither use SSH protocols nor sockets to do it.For both i would have to install something or the other for which i do not have privileges. Can anyone tell me how can i do it using putty or filezilla tools. I have both available but do not know how to access them through vb programming.
Thanks
You need to find a way to connect linux machine by SSH protocol Please refer this post for your reference executing commands on unix server via visual basic application

Resources