Page 1 of 1

Apache, PHP and phpBB related attachment upload problem

Posted: Thu Nov 14, 2002 10:45 am
by solaris
Hi everyone!

Recently, i've been creating an internal knowledge base at my company. I used phpBB's lastest version, installed it and everything went smoothly.

Afterwards, i installed a mod, the attachment mod by acyd burn, so that i could upload files to the knowledge base.

The problem is that i can't seem to attach files in a reliable way, and i think it may be an apache/php issue.

After reading some more about php, i altered some parameters on php.ini, so that i could upload bigger files. Then i restarted apache (i think... :) using /etc/init.d/httpd restart.

But the problem still remained. For instance, right now i may upload a 1 kb file, but i cant' upload a 6kb file. And for some time, i was able to upload 500kb+ files. Until something broke and i can't figure out what it may be.

i'm using sun solaris as web server, apache v2.0, php v4.2.2, phpBB v2.0.3.

Here are the php.ini parameters:

max_execution_time = 300
memory_limit = 8M
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 5M

These parameters seem to be enough for me to upload a 2.4 Mb doc file (my test subject), but for some inexplicable reason, i'm unable to.

Also, the permissions are set correctly (chmoded the upload dir to 777).

What i mean to ask is... could this be an apache related problem?

The user thas's uploading the files is apache.
For some time i was able to upload files, and these where under the user root (don't ask me what happened for these new files to be owned by apache, i really don't know)

Is there any parameter in the apache config that may be causing this?
The command /etc/init.d/httpd restart restarts apache, but could it be that i havent' restarted php correcly? If so, what must i do to accomplish this?

Some enlightment would be VERY much appreciated!

Thanks in advance,
Solaris