Ubuntu Servers :: Php Upload Location ?
Oct 30, 2010
I am running php on my ubuntu server, and I am trying to upload files to it.
Heres my code:
Code:
I use the move_uploaded_file(), but I can't get the location to work correctly. "/var/www/upload/" uploads to "/var/www/". This is the only way i can get this code to work. I would like to upload to "/var/www/upload/".
View 2 Replies
ADVERTISEMENT
Jun 13, 2010
have setup a LAMP server with ubuntu 10.04 server edition x86 for my study in VMware Workstation 7.1 For a assignment I had to make a php script that would load a file up to the server and set the name in a mysql database. According to the book the server should set the image in a cryptic folder in the /tmp/ folder.
This isn't working and i also try'd locate and find to find the image i uploaded. I checked the php.ini and file uploads were on but no folder so i set that one to /tmp/ but still no images. Can anyone help me with enabling this function?
View 3 Replies
View Related
Jan 5, 2010
I have a compressed backup that I want to crypt and upload to a remote server through ssh once in a while. The problem is with the size, more than 4 GB. If the connection drops how does scp know to resume? This should be an automated process.
View 8 Replies
View Related
May 22, 2010
I have been trying to make it possible to upload images on my website via a web browser. I have created the HTML form, I can browse to my desktop and upload an image. But my question is, where is it on my server after I upload it? I am running 8.04 on my server.
View 3 Replies
View Related
Jul 27, 2010
I would like to upload files via ftp or sftp to my web directory at /var/www/...
Originally I had installed openssh-server (through apt-get, before learning about tasksel). I assumed this only had ssh support and not ftp, so after a quick search, I installed vsftpd. I would like to learn how to configure openssh, and I mention vsftpd in case there is a conflict.
Right now I am able to log in to my server box through ssh/ftp, but I can only modify my home directory. I created a directory: /var/www/andrew and set permissions to drwxr-xr-x. I am unable to upload files to this folder.
What do I have to do to resolve this, and is there anything else I should know about my situation?
View 3 Replies
View Related
Jun 18, 2009
But I can't upload files or pictures all the time.Everytime I tried to upload , it tips me : "can't create file or folder ...... . is its parents folder writable by the server?"Now it's considered as a bug.But I tried 3 methods introduced on the net . But none of them worked. They are : 1: change the folder permission to 777 , not work for me.2: change the URL to "wp-content/uploads" not "/wp-content/uploads" , not work for me.3: use full url not "wp-content/uploads" also not work.
View 8 Replies
View Related
Dec 22, 2010
When I try to upload files via FTP to a specific folder (/var/www/myfolder/) I get the message 550 permission is denied. I set CHMOD 777 for this folder (I had to do this via SSH cause I was not allowed to do this in FileZilla)
View 5 Replies
View Related
Apr 22, 2011
I am setting up a small competition for a forum where there are a set of programming tasks to complete (in various languages). At the end of the allocated time, the fastest program that successfully completes the task wins.I would like to set up a server similar to the way the Google AI challenge works, where users can upload code to the server via an html page and the code is executed and profiled on the server.The problem is obviously security... so... how can I configure my server so that the uploaded scripts are run in a completely jailed environment and do not have access to anything outside their folder and cannot execute any commands on the server?The chain of events looks like this: User writes script on local machine -> user zips script -> user browses to server html page -> user uploads script -> script is compiled and executed on the server -> user is shown output from script
View 1 Replies
View Related
Nov 18, 2009
I have a server (fedora 11 , LAMP). I want to know if I can upload something to my server via http (I mean from WAN),and this data stream can directly run into MySQL database . Do I need to write some special codes on my web page , or just change apache's configure file
View 7 Replies
View Related
Dec 24, 2010
I've write a php code to upload files. by move_uploaded_file. I've given 777 to the folder. But file upload unsuccess, error log show no premission. I test the code in Centos it wotks. I change the dest folder in Fedora to /tmp it works, but it only work on /tmp. neither /tmp/abc nor /temp. I guess it's a setting problem on apache or php. I also copy http.conf and php.ini from Centos, but mod_file_cache and mod_mem_cache not find in Fedora.
View 2 Replies
View Related
Oct 7, 2010
We are running into issues with a File Upload script written in PHP. We can upload files without issues except with .*x files (such as .docx) We are getting permission denied errors. The error occurs when we use move upload file, to the new directory within our PHP app. If we give the uploads folder 777 access, it works fine without error. I dont like that. So I set it to 775 (Also dont like this), but it didnt work until I gave group ownership to www-data (I really dont like this)
This issue only happens on our production server, which is Ubuntu 9.04, running Apache2.2 and PHP5 will all the newest updates. We also have all MIME's configured, and are able to download the file from Apache without error. The first thing we noticed before the file permissions error, was that the MIME type changed to .zip when we used mime content type function. But yet using the FILES array, it still showed .docx.
View 2 Replies
View Related
Jun 30, 2010
looking to implement a website where business partners can download/upload documents. The files and the "partner areas" should be password protected.Are there open source projects / Ubuntu packages readily available for implementing this type of web-based file sharing service
View 1 Replies
View Related
Feb 1, 2009
I just installed FC10 and then used yumex to install the vsftpd FTP daemon package. I'm using the vsftpd.conf file that came with the distribution, and its almost identical to one I copied from my FC2 machine's working set-up. When I try to FTP in as a known system user I'm presented with my home directory /home/myusername/. The directory appears empty to the FTP program, but isn't in reality. I can't upload a file to the empty home directory. I can move up the directory hierarchy to /home/, but again that appears as an empty directory.
I don't think it's a vsftpd.conf file issue. I've tried everything I can there. Could it have something to do with permissions? I fiddled with those, but couldn't make an FTP directory listing work.
[code]....
View 5 Replies
View Related
Jul 18, 2011
I have got a question, my fileserver is up and running and is working great but if i want to download something by HTTP using the command wget [url] it does not show up in my server...
I think this is because my server location is : /Home/samba/
How do i change my default download location to /Home/Samba/ so i can see this in my network?
Running ubuntu server 10.04 headless using putty SSH
View 1 Replies
View Related
May 23, 2010
I am trying to set up SARG to provide reporting from a squid proxy server.After installing Squid & SARG, I am a little confused as to how SARG has configured itself to run.Should this conflict? Or at least create a race condition? In any event SARG and sarg-reports looks like they have not been updated in a few years.is there anything better that offers per-user location reporting?
View 1 Replies
View Related
Sep 29, 2010
I have 10.04 and have samba running.
Samba is remotely administered with webmin and aim to setup home directory sharing. I am however having some trouble getting this to work.
I was of the understanding that home directory sharing allows me to create a user in ubuntu, which samba will then pickup and offer it up as a share.
My smb.conf looks like this..
Code:
#======================= Global Settings =======================
[global]
unix extensions = no
share modes = no
security = user
[Code]....
Essentially I've found this works providing I give the samba user a password after it is automatically created using the 'Configure automatic Unix and Samba user synchronisation' option in webmin.
However if I move the location of this home folder off the main drive i.e. /home/username I get turned away at attempted login.
I've tried specifying the path in [homes] using the path = /media/discarray, but this seems to break authentication somehow.
View 2 Replies
View Related
Nov 16, 2010
I have a nice little interface that generates an exim config file and a script on the server to check for changes. Unfort I cant find where to set the config file location.
E.G. I have my script generate the file to /etc/exim/exim4.conf (could be /usr/share/foo/bar.conf just as easily)
How can I point exim in the direction of that file?
View 1 Replies
View Related
Aug 23, 2011
I use dual boot with windos 7. i use xampp in win7. want to use lampp for ubuntu 10.04. i want to use one local server directoy for both . i successfuly changed htdocs location in lampp. but could not change mysql data directory location.
View 4 Replies
View Related
Jan 26, 2011
Ive looked up and down but i cant seem to find an answer to my question. Why cant i upload to my ftp site. I am running a lamp server and i installed proftp. i created users and groups. i tested my server and its working fine. but now when im working on dreamweaver to connect to my ftp... It connects fine i can download my files from the site but when i edit them and try to "put" them back. i get an error:
index.html - error occurred - An FTP error occurred - cannot put index.html. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured.
[code].....
View 2 Replies
View Related
Feb 24, 2011
I want to backup some data on my Fedora box to a external Hard Disk (USB). I mounted the external HD on my box. I wrote a bash script to do that and I scheduled a cronjob to execute the script. When I am online the script executes as planned. However when I am logged out the copy does not work. I also tested this with a cifs mount (via fstab) and that does not work either. I set the script to generate some output at the end and that is OK so the script does run when I am offline. I suppose the mounted locations are not reachable while logged out, is that correct? Is there a workaround so I can reach the mounted locations while logged out?
View 2 Replies
View Related
Apr 26, 2011
I'm working with a program that uses Open Motif to create all of the widgets, including the Open File dialog box (obviously). However, Open Motif being kinda old-timey, 80's vintage, and for the most part now an abandoned project, it is quite clunky. So, actually what I need to do is to open some files located on my work server. I have already successfully connected to the relevant server directories with Samba, and with programs built with GTK+ (such as GIMP) I can open files across the network because I have created a bookmark in Nautilus, and those bookmarks appear in the Open File dialog box created by GTK+. Now, Open Motif is different: it doesn't see network locations, orNautilus shortcuts. When I type "smb://serveripyadayada" in the search folder, it really doesn't like it and complains. So, what do I do? Can I get somehow Open Motif to open a network location? Or can I do a run-around and place a shortcut in the file system that points to the network location?
View 2 Replies
View Related
Oct 30, 2010
I have been testing ubuntu 10.10 maverick, it has some nice features. Anyway I am missing the possibility of writing manually the folder you want to go on nautilus using the Location bar. It was used to have some kind of icon which you can click and it switched between graphich breadcrumbs or the location of the folder and you could changed it manually, you know what I mean?
View 2 Replies
View Related
Apr 12, 2010
I installed Ubuntu 9.10 and tomcat 6 java servlet container. I am trying to run the tomcat server on port 80, so I edited tomcat's configuration file (server.xml) and changed the default port from "8080" to "80". I launched tomcat server, went to my browser and entered:[url], but it says can not find server/location. Then I edit the server.xml and revert back to port "8080" and then enter: [url] and everything works fine. So my guess is some other service is taking up port 80, but I would think not, since I just installed Ubuntu and made sure apache isn't installed or running.
So I went to "System" --> "Administration", then choose "Network Tools". I then executed Netstat and did not see anything taking up port 80, but I do see port 8080 taken (assuming it is the tomcat server). Then I also did a Port Scan and entered my IP number. Again, I don't see port 80 taken, but do see 8080 being used.
I had a winxp laptop computer behind home wireless and was running tomcat 6 server fine with it, but it over-heated and died recently. So I got a used laptop and just installed Ubuntu 9.10. I have not changed my wireless router settings. It is the same as before. So I have ruled out my home's hardware/network equipment.
So here now I sit, wondering what is up?
For security reasons, is port 80 initially blocked by Ubuntu for some reason? Is there something I have to do beforehand to free up port 80?
View 2 Replies
View Related
Apr 30, 2010
i found that 10.04 hasn't edit location icon at location bar of nautilus. how to get it?
View 2 Replies
View Related
Jul 16, 2011
every time I try to upload something via FTP it tells me:Quote:ERROR:> Requested action not taken (e.g., file or directory not found, no access).How do I give access to my ftp? (I try to upload to Desktop)I use vsftpd.
View 2 Replies
View Related
Jan 18, 2010
On several websites, such as WordPress and Facebook, when I go to upload pictures, in the window that pops up, all that I see is a big, empty box, even if pictures are in there. For example, let's say I navigate to my picture folder to choose a picture of my dog to upload. Neither the picture nor any of the other pictures in the folder will appear. Just a big, gray box, almost as if the folder were empty. Strangely, random pictures that I have downloaded from the web, such as one of Martin Luther that I have, show up. But even then, not all the pictures that I have downloaded!
This is perplexing to say the least!
Is this happening/has this happened to anyone before? Is it a bug in Ubuntu or have I neglected to download something important?
View 2 Replies
View Related
Jun 25, 2010
I'm on holidays, away from home and the machines I can use have all XP.
I can access my U1 account from there but it seems it is no possible to backup and upload anything to U1 from these XP's. It's rather anoying because I'll have to buy another SD card for my photo camera at this pace.
View 9 Replies
View Related
Aug 28, 2010
I am a photographer and upload a lot of photos online. Both to Facebook and flickr. But these sites although great for sharing photos with the world are not ideal backup solutions. I love Ubuntu One and try to utilize it as much as possible but frankly I am more than a little lazy. So I more often than not don't back up to U1. The same can also be said about my document uploads to Zoho and class projects. The idea here is whenever a user uploads a file Ubuntu should automatically copy it to the Ubuntu One folder. This would likely be implemented through a browser extension.
Although the idea and basic implementation are simple there are issues that must be considered. These include size, bandwidth and privacy issues. As such the user may not want to copy every single thing they upload to Ubuntu One. But having a popup come up every time something is uploaded is intrusive and annoying.
These issues could be combated through:
-A strong settings framework
-Zeitgeist integration
-In browser dialogues (see the new "save your password/settings?" dialogues in Chrome/Firefox)
View 2 Replies
View Related
Apr 15, 2010
I can upload using FTP from a Windows machine. On same router, Ubuntu (using any FTP app) will transfer 20KB and then stall, so I cannot alter my own web site. Is there any way round this? Perhaps I should try another variety of Linux. I am certain that I used to be able to upload with an earlier version of Ubuntu.
View 3 Replies
View Related
Apr 25, 2010
I have been trying out Ubuntu One for the past couple of days but find it to be incredibly slow. At first i had put a folder will a large amount of images in the ubuntu one folder. The total size of it was 35Mb, after over 26 hours only 11,5Mb of that had been uploaded.
After looking around some on these forums i saw several comments about it being slow when it is a large amount of files, no matter if the filesize is small or large. I decided to try it out with a larger single file. I erased everything that was in the previous share and then put my testfile of 350Mb in the Ubuntu One folder.
After two hours of waiting i could still not see it on the U1 website so i decided to see how long it would take with dropbox and put a copy of that file in my dropbox folder as well. The file was uploaded correctly to dropbox in just a couple of minutes but it has still not been uploaded to the U1 website even though it has been 4-5 hours since i first put it in my U1 folder.
View 9 Replies
View Related