warning 21 warning failed to move file - iis

i am using web sites developed in Joomla and i have hosted in my IIS 7 local server (Win Server 2008) and the website is live, but when client login to my website and try to upload file, they get the error warning 21 warning failed to move file
I went to Site -> Global Configuration, There i found the path of my logs and tmp are c:/xampp/htdoc/site/tmp & c:/xampp/htdoc/site/logs respectively.
please help me whats wrong with my configuration.
thanks in advance

You need to set the permission of folder where you want to store your file. Set the permission of that folder 777. You need to set 777 permission to these folder:
tmp
logs
Folder , where you need to save your file.
Hope this will help you.

Related

iisnode not able to access file present in network file path

I am node app through iisnode. I can access file present in network path but when the application tries to access the file, it complains ' File doesn't exist'.
I tried adding IIS_IUSRS user group to have access to iisnode www directory in my local machine. I changed the username(from application pool) of the application to which I have permission(R/W) on the network path. Restarted my machine. But still problem persist.
Can someone help me if there is issue between iisnode and network file path.
const csv=require('csvtojson');
function fetchFile(){
sUsagefile ="\\\\abc\\xyz\\com.csv" .
csv().fromFile(sUsagefile));
console.log(sUsagefile);
}
Error: File does not exist. Check to make sure the file path to your csv is correct.
at C:\iisnode\www\node_modules\csvtojson\v2\Converter.js:81:37
at FSReqWrap.cb [as oncomplete] (fs.js:312:19)
I tried to access UNC path with iisnode and it was working perfectly.
Have you tried to grant IUSR and IIS Apppool\ read/writepermission for network path \abc\xyz\com.csv directly?
Besides, have you checked whether \abc\xyz\com.csv can be accessed from file explorer when IIS stop working.
It is suggested to use process monitor tool to monitor what path is read by node.exe. Please download process monitor from here:https://learn.microsoft.com/zh-cn/sysinternals/downloads/procmon then add a filter like “Path contains com.csv". Finally we would know what path the application is trying to read.

Access Local Files from IIS "silverligh"

In a silver-light application I'm using to the following code in my Visual Studio development environment
it works fine
FileStream file = new FileStream(#"D:\OP20TS.jpg", FileMode.Open);
but when publish website on iis it give me
File Operation to not permitted Access to path D:\OP20TS.jpg is denied
I have tried to give IIS full permission to the path but not work how to handle this point
Thanks in advance

/temp/ directory disappears cpanel

I have a dedicated server running Linux/Apache with cPanel. On one of my website's users are able to register and upload images.
However, over the last few days, i have received complaints that users cannot upload any media. When I check the /images/ directory I see that the /temp/ folder is missing.
So I re-created it and set the permissions to 0777.
Once that is completed all works fine. But I cannot understand why the directory is being removed. No one else has access to the site and I do not see anything in my error logs that show anything unusual.
Any ideas why this may happen?
Thank you
You need to check your PHP Script has code to unlink(dir) or Something
and Check cron list whether you have added any CRON to remove the TMP folder.
for Write permission 755 is enough If you are using Fcgi php handler, cgi, dso. Have a try 755 permission with one of the listed Handlers.

Add install from web tab Joomla error

When I'm clicking to install from web tab it gives me the errors below:
JFolder::create: Path not in open_basedir paths
JFolder: :files: Path is not a folder. Path: httpdocs/tmp/install_560ac9e0129e1
JFolder: :folder: Path is not a folder. Path: httpdocs/tmp/install_560ac9e0129e1
JFolder: :files: Path is not a folder. Path: httpdocs/tmp/install_560ac9e0129e1
JInstaller: :Install: Cannot find Joomla XML setup file
any help?
The problem may be because upload_tmp_dir isn't set in php.
Look in SITE > SYSTEM INFORMATION > PHP INFORMATION and check if upload_tmp_dir has been set. If not, you need to edit php.ini
On our servers (which use open base dir), the setting is:
upload_tmp_dir=/tmp
This value could be different for you, depending on your server configuration.
Check the permission for the folder /tmp. If it is a windows server, check if the webuser is allowed permission to create files and folder.

Users can't upload files, even with permissions set to them using vsftpd

I have a cloud hosting linux solution. I had vsftpd working on it, but after having issues and tinkering with a lot of settings, I now have an issue where users can login using FTP and connect to the correct home directory, navigate within it, download files but they cannot upload files to the server. They get a time out error, which appears to be a permissions error, but I can't narrow it down any more than that. /var/logs/syslog gives nothing away.
The folders belong to the users. The parent www folder is set to 555. Can anyone help with this issue at all?
Cheers,
T
Try to set the permissions to 755, 555 doesn't allow writing for anyone. Are your user and group different?
You also may need to enable logging for FTP server. The time out error may include some other errors, not only permission denied.
To have extended logging change the variables in your ftp config file:
dual_log_enable=YES
log_ftp_protocol=YES
xferlog_enable=YES
syslog_enable=NO
and check the log file name there.
you must create a folder into user folder (Example : /var/www/user1/upload).
and set permission 777 (Example : chmod 777 /var/www/user1/upload).
then upload file into this folder.

Resources