1and1 Uploading File Via PHP
Does anyone host with 1and1 and use PHP to upload files???
I can't find anywhere on the 1and1 FAQs that say what the temporary file directory is for uploaded files.
Anyone been there before who can help?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Prevent PHP Files Used For File Uploading
It appears that some people like to take advantage of those files for online web applications such as Wordpress which have php files with permissions set to 777. They use those as a means of creating an upload file. The upload files that they create then have access to the whole server somehow... Is there anyway of preventing this from happening?
View Replies!
View Related
Uploading File To Server
I've just installed SSL and I'm wondering where should I put my files so that users from web are accessible only through SSL? Do I have to upload whole site to the Private_html folder instead of public_html folder?
View Replies!
View Related
Uploading File To Web Server
i have a problem trying to upload files to a server, when i try and upload a file, (.htm) i get a message: file already exists (even though it doesn't), which if i then say to overwrite, it creates an empty file of 0mb, (with the name of the file i am trying to upload). i don't know a great deal about web servers - are there any web server settings which may be causing this.
View Replies!
View Related
Uploading 500MB Tar.gz File In Telnet
I am having trouble uploading a 500mb file with File Manager in the control panel as well as SmartFTP. I was told to upload this large file through Putty. I able able to login through SSH as root, but i can't seem to find the right directory to upload this file into. This file is a backup file of the home directory. I am transferring all files from my old host to my new host. How would I find the right directory and upload this file through Telnet.
View Replies!
View Related
PHP: Uploading As Apache User, And Chmod 600
I've recently moved to a new server in which I don't have root, so bare with me. For some reason when I upload a file with 'move_uploaded_file($tmpName,$new_filename)', it seems to work fine - but when I check it, try to download it (http or ftp), or change the permission - I can't, because its set to 600 for some odd reason, and owned by the user Apache is setup on.
View Replies!
View Related
People Uploading Much Bigger Files To My Server, That I Want (using Php)
i have free hosting server and a rule to upload 3MB file max. it works for FTP, but somehow it doesn't work for php. It seems for php the limit on my server is 100MB (no idea why) i use following directives to limit file size in php.ini : ; Maximum size of POST data that PHP will accept. post_max_size = 4M (4 just for some margin ) ; Maximum allowed size for uploaded files. upload_max_filesize = 3M and i still can find 100MB files on disk. this is part of log file from apache from the account that uploaded it to me: Code: boorako.[] someip - - [13/May/2007:12:21:22 +0200] "POST /a/redir.php?capthatag=accesscode&saveto=&path=/some/path/boorako.[]/a&comment=&domail=&email=&useproxy= &proxy=&split=&method=tc&partSize=10&redirto=/a/index.php&link=redir.php?capthatag=accesscode&saveto=&path= /some/path/boorako.[]/a&comment=&domail=&email=&useproxy=&proxy=&split=&method=tc&partSize=10&redirto= /a/index.php&link=[url] HTTP/1.1" 302 188 [url] boorako.[] someip - - [13/May/2007:12:21:35 +0200] "POST /a/redir.php?capthatag=accesscode&saveto=&path=/some/path/boorako.[]/a&comment= &domail=&email=&useproxy= &proxy=&split=&method=tc&partSize=10&redirto=/a/index.php&link=redir.php?capthatag=accesscode&saveto=&path= /some/path/boorako.[]/a&comment=&domail=&email=&useproxy=&proxy=&split=&method=tc&partSize=10&redirto= /a/index.php&link=[url] HTTP/1.1" 302 188 [url] "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" as the effect of this (at least i think so), there was 100MB file in his home dir. any idea how can he POST such big files even with those two directives? i have also set LimitRequestBody to 5194304 and LimitXMLRequestBody to 5194304 in apache2.conf which also should stop files being POSTED as big as 100MB. i have php 4.4.4-9, Linux Debian, apache 2.2.3 working in worker mpm, and php as fastcgi. P.S. i removed server info like IP, dir and address to not show specifics about my server in public, i put [] there.
View Replies!
View Related
1and1 File Management System
1and1 file management system Are you familiar with the file management system of oneandone. Doing an ftp upload there is already an index file and many folders on the system and the technical manual has no indication on whether to upload into any of the folders or on the system?. By the way, if you upload into the system interface, your site will not appear online.....
View Replies!
View Related
Links Files In Linux (file.txt For File.php)
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file. so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file. the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse. the question , how to avoide this prolem in the future? notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.
View Replies!
View Related
Strange PHP File On My VPS. (oxb.php)
I found a strange PHP file in a strange folder on a VPS I am using to host a few sites. I've looked through the logs but can't figure out how it got there and I've look at the code and can't make any sense of it. Can somebody take a look at the code and tell me what they think of it: .....
View Replies!
View Related
Buying From 1and1, Is There 1and1 Partner ?
I want to buy vps server from 1and1.com but I am from Turkey. 1an1 said me " The dedicated server packages are only available for US and Canada only ". For this reason I cant buy VPS server from 1and1. is there anybody sell vps and dedicated from 1and1? or does anybody help me for buying vps or dedicated server. I can pay broker price. I want to use 1and1 because when I send email on 1and1 based server, all mail to inbox. I am building Email hosting company in TURKEY. If you know other hosting company as 1and1. all email going to go inbox. I may work with him.
View Replies!
View Related
PHP File Upload
I think I messed php config and I can't upload anything with php now Dir is chmoded on 777 and File_Uploads = On in php.ini I'm running lsphp5 with suhosin, when I try to import db via phpmyadmin I get error: Uploading is not allowed and when I try to upload some file via php script I can't
View Replies!
View Related
Php File Corruption
I have a Linux VPS with Liquidweb which is working fine except for one problem: On one domain I have a shopping cart (a highly modded CubeCart). A number of the files are encrypted php files (part of the extensive mods). For several weeks all will work fine, then out of the blue, the cart will stop working because a number of the encrypted files have become corrupt. The result is either a totally blank page or a 'checksum error'. Uploading the files from a local backup fixes things for another few days or weeks. I have no idea why this is happening, or what triggers it, so if anyone can point me in the right direction to find out what is behind the problem, I would greatly appreciate it. The server uses PHP 5.2.x
View Replies!
View Related
Cron: How To Run Php File
My server with cPanel, I'd like run file http://domain.com/file.php at 0h00 everyday, I have set the Cron Job in cPanel : Code: 0 0 * * * /usr/bin/ehpwget http://domain.com/file.php but The cron is not working well Code: /bin/sh: /usr/bin/ehpwget: No such file or directory Can any one please let me know how to run a php file with cron. (as user or root)
View Replies!
View Related
[php] <defunct> - What File Generating That ?
On my server, i have one user ho create load on my server. user 29508 22.0 0.0 0 0 ? Z 15:18 0:00 [php] <defunct> That user has more site added with addons from cpanel. How can I found witch site is generating that high load ? Also some time, I have php index.php ( and that don't help me very much ) The server run php as cgi module.
View Replies!
View Related
PHP Permissions (file Owner)
I have setup an ftp user which can upload files to /home/ftp/upload and obviously it assigns the ftp user as the owner when it uploads. Now, I want PHP to be able to rename those files, but getting a permission denied, presumably because apache aint the owner or doesnt have permission to do that, so how do I grant it the right permission(s)?
View Replies!
View Related
PHP File Change String
I currently have this code in my Image Upload script which changes the file name into sets of numbers and letters Quote: $new_file_name = "uploads/" . md5($_FILES['selector']['name'] . time()) . "." . $extension; How can i make it so its smaller than an md5, about 6 or 7 numbers and letters.
View Replies!
View Related
Mod_rewrite - Changing Paths In The Php File?
I am using mod_rewrite to create "pretty" urls but some of my files contain paths such as this: <img src="images/blah.jpg"> Meaning if the user visits a page where the file does not physically exist then it won't work. I want to know if it is possible to pick this up and rewrite the path. I.e.: change: <img src="images/blah.jpg"> to: <img src="../images/blah.jpg"> or <img src="../../images/blah.jpg"> As I don't want to create physical files with relative urls for every trunk of my url. For example: www.mydomain.com/directory/directory/directory/ Would need 3 different files in three different directories to display properly.
View Replies!
View Related
Chmod Choices With Php Writing To A File
My account has been hacked with every index.php page defaced. I've cleaned up and my shared wehost is pointing at me saying there shouldn't be any 777 permissions for any files in there. I used 777 to allow php to add records in a txt file and in an xml file. Is there a better / more secure chmod code I can use? Those are the only two instances where I need php to write to a file and those files shouldn't be served to anyone, I do not want anyone to be able to access them. How can I secure them while letting php write in them?
View Replies!
View Related
Php.ini And .htaccess File Permissions
I'm on a shared FreeBSD server, running Apache with Drupal, and vBulletin. I had to create a local php.ini file in my public_html folder for Drupal, and another in my forum folder for vBulletin. Now my question is, what should I set the permissions of these files to? Also, what should I set .htaccess permissions to as well? I'd like to keep them invisible to the public. But, I don't want any problems with Drupal, or vBulletin ether. I'm used to using Linux and I know how permissions work on a desktop. I just don't know what they do when used on a server. I'm guessing 640, but I'd like to make sure before I change anything.
View Replies!
View Related
Strip Whitespace From Each Line Of PHP File
I have a load of PHP files that need trimming down, so for example Code: <html> <?php $loads_of_stuff = 1231231; ?> </html> change to Code: <html> <?php $loads_of_stuff = 1231231; ?> </html> There are 000's of lines, so some awk command or something similiar would be great to execute on each file.
View Replies!
View Related
How To Prevent People Upload Unwanted .php File
I have a 777 cmod folder open. It needed to be writable so that legitimate users can upload their picture. However, i do not want people to upload .php or .php.pjepg etc to the server. There are times that they do not use the form in my site to upload the php file. How can they do that? via perl command? And how to prevent such thing from happending?
View Replies!
View Related
How To Secure Your Php.ini File Safe Mode ; Disable_functions ; Etc
what are the most important issues for secure php.ini file like when you turn your SAFE_MODE ON or OFF? or please who every read this topic to post his important disable_functions in php.ini ... and if some functions disable to post it ... let's make this subject for the most important issues for secure your php.ini from script-kids as we can ... here i have some important question's for anyone has or controlling a server ; vps .... #0x01 ; what the most important disable_functions for the php.ini? #0x02 ; is the safe_mode should be enabled? or disable? and this depend on what exacly? #0x03 ; what the functions or any trick to control the nobody ( attacker on the server or shell ) FROOZ .... didn't move ? or make any command in the server ... #0x04 ; i saw in some secure server ( as they say ) they changed the Server : discribe to them name[s] like Server : SECURE BY US .COM OR SECURE SERVER .. uname -a : Linux secure.secure.com 2.6.9-023stab040.1 #1 Mon Jan 15 23:24:32 MSK 2007 i686 athlon i386 GNU/Linux sysctl : linux 2.6.9-023stab040.1 Server : SECURE BY US ! < [THIS WHAT I MEAN HOW COULD WE CHANGE IT IN PHP.ini ?] id : uid=99(nobody) gid=99(nobody) groups=99(nobody) <[how can we cannot make this nobody to have the host id ! everyhost in the server should have his own name and php.ini ?] pwd : /home/host/public_html/ #0x05 ; how can we hide the uname -a on the shell [ the attacker upload it to our customer site !] #0x06 ; how can we hide the sysctl to view to anyone like [ attacker ] ... #0x07 ; how can we rewrite on he Server Type the display for our secure message?Server : SECURE BY US ! #0x08 ; how can we give evey site and customer his php.ini file in his public_html? and how can we give him [ JUST HIS PERMISSION TO HIS SITES FOLDER AND NOT OTHER PATHS AND PERMISSION!] these question every one had a server ; vps , need to know and secure his box from other ... and anyone would like to publish any new [secure or not] idea please let us know what you would like to say ....
View Replies!
View Related
Simpleish PHP/flat Files - Create File, Edit, Save
Display some text in a web browser from a file called text.txt text.txt will have many lines and some of them I do not want users to be able to modify and overwrite. config_item_1=user can edit config_item_2=user should see but not edit (could be on any line) config_item_3=user can edit config_item_4=user can edit The user has made their changes in the web browser and clicks submit. I then need this info to be saved as the text.txt file however some checking needs to be done first. Anything matching config_item_2 should be removed. This could be on any line. Anything not matching should be permitted and added.
View Replies!
View Related
Proc List Only Shows "/usr/bin/php" - No More File Names
We use cpanel on our centos servers and we've updated our servers recently using easyapache to the latest php4 and mod_suphp and I've noticed that in top (running "top c" in shell) all php processes by any user are simply displayed as "/usr/bin/php" Before this update the processes also showed the file name eg. "/usr/bin/php lamescript.php" which allowed to easily find troublesome scripts ... but now there's no way of knowing what the script in question is that's eating up 100% of the cpu .. or is there?
View Replies!
View Related
Uploading Files
I've just uploaded my website files onto the server, the website is working fine, but I'm not sure my files are 'arranged' right. I uploaded my images in a folder, but all the rest of the files are 'loose' along with the index file. If I go to either of my domain names, the website appears, which is ok for now, but I only really intended it to under one domain name, so there may be problems if I want another site up there. I think my files should be in a folder. Is this right? Should the index file be in the same folder, or should it be outside the folder with the links changed accordingly. I've been emailing my hosting service, and they 've been trying to help, but I feel a bit thick because I don't really understand what they're saying. Could someone tell me in very plain english how the files should be arranged?
View Replies!
View Related
Uploading Speed
uploading some stuff to my servers, and it's going at about 50-60 kbps. what would be a good service that could see my uploading speed rise to about 100-200 kbps? I live in Canada, BC to be more specific
View Replies!
View Related
Flash Uploading
I have a flash swf that I use to upload files… however to get this to work on the server you have to do something like turn on shockwave uploading?… do you know what you need to do to upload using flash swf?
View Replies!
View Related
Uploading A Zip
i am uploading a zip to show everyone one of my flash projects and to get feedback, i want to uplaod the original flash file along with the HTML page in a zip, would i just upload the zip file onto my server and then when you access that web page it asks you to download it or is there more to it?
View Replies!
View Related
Uploading To Shell
ive just token over my old hosts server as he had no time to run his hosting company so im a nOOb to the whole server management shell side of things, and im wondering if someone could help point me in the way of a tutorial on how to upload to the shell of the server, im trying to upload whm master reseller and some other cpanel addons,
View Replies!
View Related
Uploading Big Files
i just bought php file management script, its running smoothly, the only problem was i cant upload big file ( > 1 Gigs ) using that script, then i ask the developer and he said it shouldnt be a problem since he sold that software before people and he never got a problem like that. OS : Slamd64 apache 2.2.10 php 5.2.8 i tried to changed post_max_size = 1900M upload_max_filesize = 1500M
View Replies!
View Related
Uploading To Multiple Servers
A website I am involved with may soon hit a problem due image uploading being stored on only one server. We are unable to find a realistic solution which would allow us to upload images from 1 central location. The website is programmed in PHP and is on a standalone web-server - currently the images are uploaded to the same directory as the website however we are looking to move the images to another server for scalability. Is it possible at all to upload using a directory link of some kind, eg, the directory would be /serverip/path/to/images which you would upload to? Or any other realistic approaches that you know off.
View Replies!
View Related
Uploading Multiple Files
I want to install a script (a simple wordpress blog)on my website but now i'm just astonished at how many files I have to upload on my server's directory! Uploading those files one by one will take forever. Is there a way to upload multiple files all at once?
View Replies!
View Related
FTP Uploading Corrupt
The Details: XP Home, Verizon DSL, AVG, ZoneAlarm, CoffeeCup FTP, FileZilla FTP So this all started about 5 days ago and I cannot think of anything that I did to associate this issue with. I'm very computer savvy and no one else uses this computer except for me (to help move things along faster). Essentially what happens when I start CoffeeCup FTP or FileZilla FTP (testing to make sure it wasn't just a problem with CoffeeCup FTP) and try to upload image files it fails, not the upload itself.. but somehow the image files are corrupt (no they're not CMYK, they're RGB). So it shows the file on my server, correct size, no error messages. However, when I go to the image URL it just shows the image URL where the image should be. I then restart CoffeeCup FTP and everything uploads properly. I've checked the lines on DSLReports.com, I've checked ZoneAlarm to make sure that I didn't somehow accidentally click no to something (which is unlikely). I keep my computer very clean and very organized and very up to date so it would be more helpful to me if someone could share some ideas of something that could happen that's not of my control. Could this possibly have anything to do with SP3 (the only thing I can recall being a change on my computer).
View Replies!
View Related
Uploading To Htdocs -> Err...
I've been using a Fedora Core 6 box to develop my site with PHP and MySQL. The web directory is /var/www/html. I just recently bought my first hosting plan, and it says to upload my site to the Htdocs folder. Is this a BSD server? I know nothing about BSD, and I'm worried, because I don't know if my site is going to need to be re-written. You see, some of my files, like the db connection script, are in /var/www/myfoldername ... Is there an equivalent on my new rented server, where I can put these files? How about my databases? When I run the installer I wrote to create them, it just creates them, and FC6 has been doing what it will with them to get them working. Am I going to have issues connecting, because they're stored in a different dir?
View Replies!
View Related
MySQL Phpmyadmin Uploading
I am using Windows XP (my laptop) to run a server for localized testing for a site that I run. I am using the WAMP5 on Windows XP. I got everything setup (phpbb board) vanilla install. Everything went fine, no problems. The script uploaded all the tables on its own. I pulled the database from the real server to drop into the test site. Every time I try to upload a sql file that's 11.9Mb in size, I get a "Error: You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit." so I checked the configuration and set it to a 1024Mb file size and like 2048 memory size. I even tried a 30Kb sized file and I still get the same error. What do I need to do to get this to work? Also when I check all tables and use the drop down menu to select drop, it just bring my back to the start phpmyadmin page and nothing happens. I can drop the table individually, but that'll take too long, there are over 40 of them. What else do I need to look for/configure so this will work?
View Replies!
View Related
Uploading Scripts And Hosting Policies
I'm working on a php app that will be publicly released at a later point, that includes uploading functionality, but on my testing account, I get acces to /temp denied for permission reasons. How normal is it for this type of obstruction to occur with webspaceproviders in general? If this is a fairly common policy, I need a solution of somekind. Perhaps uploadig the file temporarily to a folder on the users own webspace, instead of the location on the hosting server, being used by PHP by default (/tmp)
View Replies!
View Related
Uploading A Website On Directadmin Server
Can someone volunteer (using the word "volunteer" because the one who agrees to help can be getting some really beginner level questions) to help me on uploading my website to a web server. The thing is i have designed and optimized (seo) some websites but i never had an experience of uploading a website on webserver (in other words launching it). I have this simple webpage and a free hosting service (Frihost) ... once i learn how to upload a webpage and get it running online .. i will make changes in the webpage and go for some paid hosting service. So can someone guide me at this? Specially the one who has hosted some page at Frihost.
View Replies!
View Related
Error 406 When Uploading From Flash
I've recently moved to a new provider and noticed that one of my sites that was using a flash file uploader without any problems now receives a 406 error whenever a file upload finishes. After some digging online i found that the problem could be caused by mod_security and found a tutorial which explains that by using .htaccess u can disable mod_security for the particular domain. I've tried that but receiving internal server error who seems to indicate that mod_security is not actually running. I looked at the domain's error log file and no entry is being written to the log when the error occurs. Anyone have any ideas how to fix it? Or at least where to look for the causes. I'm using the following flash uploader: [url] Server is running CentOS and WHM .. the original server that didnt have a problem with the uploads was running Fedora and WHM.
View Replies!
View Related
Uploading SQL Databases By FTP
we have been trying to import sql databases through cpanel. The old server the client was on did not have any control panel. While the new server the client is migrating to, has cpanel. We try importing sql databases through cpanel, but because the sql databases are so large in size, they corrupt while importing them. The client's old server he would be able to access all his sql databases through FTP. While with this new cpanel server, we can't upload sql databases by FTP. We are wanting to use FTP because when using cpanel, the sql databases corrupt. So is there anyway to upload sql databases with FTP directly into mysql when using cpanel server?
View Replies!
View Related
|