Ubuntu Servers :: Apache - Execute A Bash Script That Uploads A File To Another Server Through A Website?

Sep 20, 2010

I have a web server in my kitchen with apache running on it. Since the upload speed is quite low due to my isp I would like to execute a bash script that uploads a file to another server through a website (which is htaccess protected) The idea in general: Someone with access to my website browses through a folder, copies a file path to an input form and presses "upload". Rather than executing a bash script directly I could have a cron job running in background that finds the path and then uploads the file to the other server I have userspace on and is accessible via sftp/ssh. The file would be than erased later after a couple of days or so. That person would be able to access the file with higher speed some time later without logging in via ssh and doing all that manually.

View 2 Replies


ADVERTISEMENT

Fedora Servers :: Apache Execute Permission To Save Uploaded File?

Sep 10, 2009

here is the upload form:

<form enctype="multipart/form-data" action="uploader.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

[Code]...

View 1 Replies View Related

Ubuntu Servers :: Server Refuses To Execute A File?

Feb 28, 2010

started setting up my 3rd ubuntu server under the OS of Ubuntu Linux 9.04 64 bit. I have configured the server to allow root access and am using this to execute this file. As you can see from the screenshot of PuTTy, the file exists but is refusing to load up. I am also able to nano the file. I have tried moving the file to /root/ and still had no luck.

View 3 Replies View Related

Ubuntu Servers :: 9.1 Setup - How To Get Apache To Display Website

Jan 10, 2010

I have Ubuntu 9.1 setup, with ISPCONFIG3, squirrel mail, apache2, mysql, phpmyadmin, phpbb3 so now what, what do I need to do next to setup to get apache to display my website and where do I need to put my web files?

View 1 Replies View Related

Ubuntu Servers :: Apache/PHP Set Root Directory Of Website?

Nov 27, 2010

In my website, I'm putting shared files in a "/global" folder. Both "styles.css" and "library.php" are in this global folder. HTML code seems to be working ok - the following bit works great to pick up a style sheet:

Code:
<link rel="stylesheet" type="text/css" href="/global/styles.css" /> However PHP does not seem to understand my root directory. Using the following does not work:
Code:
include_once("/global/library.php");

I receive a "failed to open stream: No such file or directory" error.Spelling out the entire full path works, like so:

Code:
include_once("/srv/www/mysite/global/library.php");

But this type of code is no good as I may change servers in the future. I have my "DocumentRoot" set correctly in my sites-available file. It seems as if PHP is ignoring it. Is there a config file someplace (htaccess? Local php.ini?) where I should update my root directory for this site only? Or am I following bad form and there's a better way to do this? Relative paths don't seem like the answer here though...

View 5 Replies View Related

Ubuntu Servers :: Website Not Updating Without Apache Restart?

Feb 1, 2011

I've installed Ubuntu server and got everything setup pretty well.My problem is apache.I put my website in /var/www and changed the security on the files to allow them to be executed by other, which is what I finally discovered was my first problem (access denied). But now whenever.I go in and edit my page, the changes aren't reflected on the site unless I completely restart apache.I know I'm doing something wrong because I used to pay for a host and every time I edited a page, it was instantly updated on the site. Could one of you gurus tell me where I screwed up?

View 4 Replies View Related

Fedora Servers :: Apache Won't Pickup Website

Feb 7, 2010

Apache wont picup my website when i dropped my Site folder in the /var/www/html directory even after starting the Apache service.

View 2 Replies View Related

Ubuntu Servers :: Basic Configuration To Execute PHP Under Apache

Apr 7, 2011

On Ubuntu 10.04 with Apache and PHP installed, I can execute a test.php file

Code:

If I specify it on my Apache web server

Code:

However, I am not able to configure the web site to execute index.php automatically.

These are the settings I have.

Code:

View 2 Replies View Related

Ubuntu Servers :: Associate Internal ISS With Website Hosted By Apache?

Apr 18, 2011

we have a dual server setup: Windows server 2003 and Ubuntu 10.04 with apache installed with all the goodies. This is all virtualized. What I'm wanting to do, is make the new website we've created run on the Ubuntu machine, which it is, and be accessible outside the office. However, by doing this, we forfeit being able to use remote access or web exchange on Windows server 2003.

How can I create a link from the new website on Apache point to the internal server and it work outside of the office?

View 7 Replies View Related

Ubuntu Networking :: HTTP POST File Uploads On PCs - Getting 500 Internal Server Error Message

Sep 23, 2010

We're having an issue with HTTP POST file uploads on our two Ubuntu PCs. For some reason, whenever one of our users attempts to submit a file in an HTML form, the request times out, usually with a 500 Internal Server Error message. This problem is not limited to one site, but occurs on all sites that use file uploads. Also, the problem does not appear to be with our network, as a Windows 7 PC on the same network can upload files to the same sites without any difficulties. The problem is not browser-specific; we have tested with Firefox, Epiphany, and Google Chrome and all produce the same results. The issue is relatively new, and was first observed within the last month; before this time, both machines had no problems uploading files.

Does anyone have ANY idea what could be causing this? I've tried a number of things, including rebooting the PCs, rebooting the network, disabling IPv6, etc. I'm not very experienced in Linux system administration, but I can use the terminal and am familiar with some terminal-based diagnostic tools, so if you need any additional info or want me to try something, please let me know! I've exhausted my own computer knowledge with regards to finding a solution to this problem.

View 3 Replies View Related

Fedora Servers :: Make A Website With A Virtual Host Of Apache Visible?

Nov 8, 2010

In first place i am sorry about my horrible English. I want to make a web site with a virtual host of apache visible by all the computers connected to my networking. I put this in the end of the file "/etc/httpd/conf/httpd.conf"("192.168.1.194" is the IP address of my computer. The default gateway IP address is "192.168.1.1"):

[Code]...

It works if i go to "http://192.168.1.194/" with the browser of the computer with apache inside, but on the others PC of my networking this method don't work!

View 2 Replies View Related

Ubuntu Servers :: Separate Virtual Machines For Apache, Mysql, File Server?

Jul 11, 2011

I'm working on a side project where I would like to install three ubuntu server systems,each with only one task.So server0 would be the apache server, server1 would be the database and server2 would be the file server.which key terms I should be researching?

View 9 Replies View Related

Server :: Config Apache Server To List Php, C/c++, Java Files As Regular Txt On Website?

Feb 2, 2011

I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,

e.g /var/www/mydomain/pub

i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,

if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,

Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?

View 1 Replies View Related

Server :: Config Apache Server To List Php / C/c++ / Java Files As Regular Txt On Website?

Feb 23, 2011

config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?

View 1 Replies View Related

Server :: Apache Serves Up Website From Any URL?

Feb 17, 2011

I'm running Ubuntu 10.04 with apache, rails, mysql, etc. My rails site is running at www.example.com. I'm intending to use named-based virtual hosting and I have a virtual hosts file configured/enabled for www.example.com. My site is hosted on Amazon EC2.

The problem is that if I set up a new DNS record -- say test.example.com -- and browse to that, my site www.example.com is served up! That's without configuring any new virtual hosts. And the same is true if I go to my DNS records and define test2.example.com, etc. Without touching my server, these new URLs serve up my website. That's not what I want! I want to use name-based virtual hosting and host different sites for each subdomain.

[Code]...

UPDATE: now I understand a bit more... apparently my real problem is not what I thought it was. My real problem now appears to be that when I copy this virtual hosts file and edit it to add a new subdomain name, set up the corresponding site, etc., and enable the virtual host (a2ensite) and restart (graceful), apache immediately stops serving up any websites. Apparently apache crashes although I do not see any error messages. But all my sites go down and I have to revert and then restart apache.

I thought this was because my virtual host file (pasted above) had an error. So I thought I would start by getting that first file right. Apparently it is right. So now I need to understand why adding a second virtual host causes all sites to stop being served up.

View 1 Replies View Related

Server :: Apache - Browsing The Same Website Simultaneously?

Feb 27, 2010

Doing my final year project in linux- a Mozilla Firefox extension which providing chat option for two or more peoples,who happen to be browsing the same website simultaneously. It shows you other people who visit the same websites as you are. These people have to be registered with our software. I don't know how to go about this. After a lot of googling and enquiring i have divided the project into three modules: an extension at browser side, chat implementation (probably in ajax) and a server- apache-php-mysql.

The extension keeps track of the URLs visited by the browser. It sends this information to the server. When it receives information from the server, the extension displays the number of users visiting the URL as the user. The extension informs the server whenever the user clicks the EnableChat(which will be embedded in a toolbar in the browser) button to start a chat session. After receiving the information, the extension displays the users in that site. The user clicks on a particular username for chat.

I have installed php mysql and apache. but i do not know exactly what the server must do. I know i have to write the server code in php and put it in the /var/www folder. but what should that code do? how exactly does the extension or browser communicate with the server for the exchange of above info?

View 4 Replies View Related

Server :: Execute CGI On Apache Document Root

Mar 18, 2010

how can I run CGI scripts that are without extensions under the document root?i can not use ScriptAlias on the document root, i can run .pl scripts but i cant run any script without extension...ofcourse all files are executable on the fs.

View 8 Replies View Related

General :: Execute Bash File - Always Back To Home Dir?

Apr 11, 2010

In my bash file I have asked to navigate to some subdir, unzip a file and stay there but when I type pwd I can see i'm always back to home dir.Any way to get shell stick to subdir?

View 4 Replies View Related

Server :: Configure Apache To Execute Php Scripts / Pages?

May 14, 2009

Most of my googling odysseies lead me to articles which talk about compiling apache & php from the source as this is touted to be more flexible. But the problem we have is this...we already have an apache 2 web server running. Now how do we serve php pages of it.

View 1 Replies View Related

Networking :: Apache Server - Host Local Website Within Network

Jan 11, 2011

I am trying to host a local website(an wiki application) within a network. Is it necessary that all the files I need to upload should be in the var/www?

View 8 Replies View Related

General :: -bash: /usr/sbin/amrecover: Cannot Execute Binary File

Jun 8, 2010

I just installed amanda-backup_client-2.6.0p2-1.rhel4.i386.rpm on my Red Hat Enterprise Linux 4 system. But I don't know who to check if it successfully installed or not. When I try to run amrecover from root, I get:

-bash: /usr/sbin/amrecover: cannot execute binary file

View 4 Replies View Related

Server :: How To Execute Bash Script From Web Page

Mar 26, 2010

What i want to achieve si simple (i think).

I have this shell command:

Code:
echo -e 'ka 0 00
' > /dev/ttyS0
and i want to execute it from html or php with a button maybe or a link.(it's a command to turn off the monitor)

I am running Ubuntu 9.04 desktop with apache and php installed .
already searched the forum but didn't find/understand how to achieve this functionality.

View 14 Replies View Related

General :: Executable File Apparently Doesn't Exist When Trying To Execute With Bash

May 9, 2011

I downloaded a program called tonespace http://www.mucoder.net/en/tonespace/ which I extracted and then tried to execute the executable file with ./tonespace. This gives me the following message:

bash: ./tonespace: No such file or directory

When I use the command: file ./tonespace I get this: tonespace: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

I dont get it. The file is clearly there, yet when trying to execute it bash doesn't seem to recognize it.

It has permissions rwxr-xr-x and is not owned by root. Am I overlooking something?

View 2 Replies View Related

Server :: AD User Login To Nagios - Unable To Execute CGI Scripts In Apache

Apr 25, 2011

I have a nagios server monitoring around a 1000 hosts in our office. To make things easier, i've integrated apache into Active Directory for the website authentication. This works perfectly, however the Nagios website uses alot of CGI scripts to display information I get the message below when trying to show CGI scripts with an AD user. Local users work fine. 403 Forbidden You don't have permission to access /nagios/cgi-bin/status.cgi on this server. I tried adding the AD users to the cgi.conf file within Nagios (which works for local accounts) but it doesn't seem to work even with this change.

View 4 Replies View Related

Software :: Call Website With Bash Script From Private Server?

Jun 30, 2011

Me and my friends have a website about games and stuff. The web hotel we use clears the app-pool when it has been inactive for 15 minutes. We don't have that many users yet so this is a problem because it takes ages to load if it has been inactive. I came up with the brilliant idea of calling the website with a script from my private server at home every 5 minutes or so. That way it would never go down.

I used some lines from another of my scripts:
wget -q -O - http://homepage.se/ > /path/to/a/file.txt
cat /dev/null > /path/to/a/file.txt
and put it in crontab.

The script runs and all and I think it's better now but we can't know for sure if it is the scripts doing. Sometimes it's just as slow as ever and I start to think the script doesn't do anything. I've tried adding more wget-lines to fetch some different pages from the site and now running it every 3rd minute. No difference. Does anyone know another way to call a website in a way that would solve my problems? Am I using the wrong options with wget maybe? I've tried lynx (and piping to file) but it didn't work.

View 7 Replies View Related

Server :: Opensuse Apache Connection - Unable To View Website From Outside The Local Network

Jan 29, 2011

I am running opensuse with LAMP, and this is my first time setting up this type of server (usually am a windows junkie) My problem i am having is that I am unable to view my website from outside the local network. I have setup my router for a dynamic dns and forwarded all the ports through the router and the local firewall. I ran the apache setup through YAST2 and everything seems fine locally but when i attempt to access it elsewhere its not connecting. computechsolutions.dyndns.biz is the dynamic dns address i have setup through my router.

View 2 Replies View Related

Ubuntu Servers :: 10.04 Cannot Execute Binary File

Dec 22, 2010

Trying to install Parallels Plesk Panel 10 x86_64 onto a completely new installation of Ubuntu 10.04.1 LTS

root@server:~# chmod +x parallels_installer_v3.7.1_build101014.17_os_Ubunt u_10.04_x86_64
root@server:~# ./parallels_installer_v3.7.1_build101014.17_os_Ubunt u_10.04_x86_64
-bash: ./p.arallels_installer_v3.7.1_build101014.17_os_Ubun tu_10.04_x86_64: cannot execute binary file

View 5 Replies View Related

Ubuntu Servers :: LVM Read Slowdown During Torrent Uploads?

Jul 14, 2011

I've made a simple headless home server based on:

1. Motherboard Asus AT4NM10-I (Intel NM10, PCI)

2. CPU integrated Intel Atom D410

3. 2 Gb of RAM

4. Network Card D-Link DGE-528T 10/100/1000 Mbit/s

5. OS Ubuntu Server 10.04.2 (All installed packages are up to date)

Storage build under LVM based on:

1. Samsung HD103SI - 1 Tb, 5400/32 Mb.
2. Hitachi SATA 2000Gb Deskstar 7K3000 - 2 Tb, 7200/64 Mb.

So found one issue: When torrent upload speed reaches peak speed (160-200 Kbytes/s) huge read slowdown happens. Server becomes almost unreachable... It allows to connect via putty but it takes a lot of time.

Tested top stats during those lags (Deluge, Transmission) - 10-15% CPU usage.

So I think the problem is in LVM and not in CPU.

How is it possible to find weak place in system to avoid those lags... Cause if torrent is seeding it's impossible to watch movies through network form that server.

View 9 Replies View Related

Ubuntu Servers :: Install An IRC Server On Website?

Jan 4, 2010

I'd like to install an IRC server on my website (it's hosted on another server location).I can log into the server side of things but am not sure how much control I have of installing applications. I'd like an IRC that's easy to install and easy to set-up. I logged into the cPanel page of the site and found this "general server information":

Operating system: Linux
Kernel version: 2.6.9-78.0.22.EL
Machine type: i686
Apache version: 1.3.41 (Unix)

[code]....

Unfortunately there's not an IRCd/server type of application available on the "Fantistico Deluxe" application installer feature.

View 9 Replies View Related

Ubuntu Servers :: Get My Website Connected To Server?

Feb 25, 2010

So I gave up on the mail server Idea as that was too much of a headache.

So I was wondering as I have registered waloshin.com with godaddy.com how can I get an apache hosted website to appear on that domain from my server?

Do I have to configure BIND9 to do so?

While going to http://whatismyipaddress.com/ it does say that my ip address is static: Assignment:Static IP

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved