473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Upload file problems in PHP + Linux

I'm using PHP + apache2 in Linux platform. I found that the
upload_max_filesize 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 1956
ka****@gmail.com wrote:

Hi kamlai,
I'm using PHP + apache2 in Linux platform. I found that the
upload_max_filesize 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.com 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***********************@news.xs4all.nl>, Erwin Moller says...

ka****@gmail.com wrote:

Hi kamlai,
I'm using PHP + apache2 in Linux platform. I found that the
upload_max_filesize 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
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...
3
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...
1
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...
10
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...
0
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,...
16
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...
9
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...
7
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...
9
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.