473,614 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upload file problems in PHP + Linux

I'm using PHP + apache2 in Linux platform. I found that the
upload_max_file size has only 2M. I want to increase this limit but I
don't know where can I set it.

I'm using Linux so I don't have php.ini file. Please help. Thanks.

Oct 12 '05 #1
3 1975
ka****@gmail.co m wrote:

Hi kamlai,
I'm using PHP + apache2 in Linux platform. I found that the
upload_max_file size has only 2M. I want to increase this limit but I
don't know where can I set it.
In php.ini


I'm using Linux so I don't have php.ini file. Please help. Thanks.


Why don't you have php.ini in Linux?
I think you have it somewhere. :-)
Try: locate php.ini

Regards,
Erwin Moller
Oct 12 '05 #2
ka****@gmail.co m wrote:
I'm using Linux so I don't have php.ini file. Please help. Thanks.


Really? What's in your /etc/php directory then? ...

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-arroba-escomposlinux-punto-org

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.4.2, and PHP
5.0.5-2 generating this signature.
Uptime: 15:33:14 up 17:57, 1 user, load average: 0.24, 0.28, 0.26

Oct 12 '05 #3
In article <43************ ***********@new s.xs4all.nl>, Erwin Moller says...

ka****@gmail.c om wrote:

Hi kamlai,
I'm using PHP + apache2 in Linux platform. I found that the
upload_max_file size has only 2M. I want to increase this limit but I
don't know where can I set it.


In php.ini


I'm using Linux so I don't have php.ini file. Please help. Thanks.


Why don't you have php.ini in Linux?
I think you have it somewhere. :-)
Try: locate php.ini

Regards,
Erwin Moller


If the locate db isn't up-to-date you might need to use find to scan all the
directories. If it doesn't show up using locate you might try this...

find / -name "php.ini"

Rich
--
Newsguy -- http://newsguy.com

Oct 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2956
by: Chris | last post by:
I am having a problem with a php upload script. it will allow me to upload small files (about 1Mb) but not larger ones (less than the upload_max_filesize). Can you help diagnose what the problem is? I have PHP Version 4.2.2 on Red Hat Linux 9. the entry's in php.ini and scripts are as follows
3
2504
by: Atz | last post by:
Hi to all ! This is the working, completed PHP script for file upload. The only problem is: wenn i send file and when the file is upload on the server, the file name ( orginal file name is bla.gif ) is converted to something like this img34b123.gif. The file is stored in wright directory and there is no problems with upload. Could this be programming error or is this error/problem of the linux admin.
1
13117
by: david | last post by:
Hi there, Does anybody know of some restriction that stops the apache user on doing a dos2unix on a file upload from php? I'm getting 'permission denied' on some temp file that it tries to create. I tried doing it from the command line by manually placing a fake upload file in /tmp: $ ls -ltr /tmp
10
2869
by: matt | last post by:
I have this code, works perfectly on Windows server, but now i'm trying to run it on a Linux server, the form submits, i get no errors, but the photo doesnt upload, and the caption file doesnt write.... any ideas why?? <?php include 'gall_settings.inc';
0
2369
by: Paul Hamlington | last post by:
Hello, I've been programming in ASP for a little while now and quite an advanced user, but I have come across an unusual problem in which I need assistance. I have built my own image upload, I have two versions of the binary to string conversion one fast, one slow because some servers use chillisoft and therefore the append function in not accessible for a disconnected recordset.
16
4971
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've set the POST limit in php.ini to 8 megs. What reasons, other than the POST limit, would a large upload fail?
9
20885
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at rapidshare news : http://images.rapidshare.com/software/rsapi.pl If you test it you will see that you can upload one file at time. I try to modify it in that way that script can read a text file with the names of the files i want to...
7
458
by: luigi7up | last post by:
Weird problem I have, really :) I wrote a script that uploads files to /user_upload/ directory. On localhost version of my site everything works just fine. I mean files are uploaded well. With online version I'm having problems. Files that are uploaded can't be seen over FTP client (Total Commander FTP). I know they are uploaded because if I try to list upload folder over http: over my browser, the files are there...?! So files are up...
9
3886
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This works fine. The doctors want fewer steps to follow. So, it was asked if I can configure the browser to load/submit the image 'xray.tif' each time they click "Upload Image" instead of the doctor/animal technician having to look for for dental x-ray...
4
10544
by: Tony B | last post by:
I've moved an existing site (which I didn't write) from a apache/php/mysql host under windows to a linux apache/php/mysql host. I've sorted out most problems except one. There is an upload function on the site, which uploads files via POST to temp folder and then moves it into a folder on the host using php function move_uploaded_file. Under windows this works fine but on the linux host the uploaded file is created with 600 permissions so...
0
8130
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8576
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8275
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7091
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5538
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4050
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4121
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.