LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2018, 08:04 PM   #1
seandwayne
LQ Newbie
 
Registered: Jul 2018
Posts: 1

Rep: Reputation: Disabled
Angry Running LFTP from webserver (apache) Amazon Linux does not work


I have two AWS servers. One is running Amazon Linux and the other is running Windows Server. The linux server is a web server. When someone creates an account on my website, the linux server creates files. I have to send these files to my Windows server. I have created scripts to accomplish this. I have tried LFTP but the command runs as the apache user and the command does not run. When I run the script myself it works. But when the script is run from the web request, everything but the lftp command runs. Is there another command I can use or am I doing something wrong? I've tried changing file ownership, I've tried adding lines to visudo but nothing seems to work.

Last edited by seandwayne; 07-06-2018 at 08:37 PM. Reason: Clarify
 
Old 07-08-2018, 05:58 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,159

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
#1 what makes you think that it does not run? If the transfer fails silently, the command can run but the transfer will not occur. We need your evidence: log files, test results, etc.

#2 have you attempted to run the steps manually AS the web service user? The web services run under a restricted account for security, and the permissions on that account may be implicated.

#3 What protocol are you using to do the transfer? Lftp supports several protocols, but some are not well supported by Microsoft servers without special software or settings (or both).

#4 what steps have you taken to troubleshoot or diagnose the issue?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon Linux + Apache + PHP-FPM = Confusion! mh77 Linux - Newbie 1 09-25-2012 06:02 AM
Am running a debian webserver and trying to get XBMC to work also Vodkaholic1983 Linux - Software 18 06-11-2012 08:28 AM
Linux (Apache) webserver help needed bresnen2112 Linux - Server 2 06-09-2010 10:58 AM
How did my linux-apache webserver get hacked? markie Linux - Security 18 10-19-2004 09:07 PM
Linux 6.2, Apache webserver and Flash 4 ? gargoyle Linux - General 0 07-11-2001 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration