Hi,
I'am running CPG 1.33 on a Redhat Fedora Core 4 machine. I'am using Apache 2.054 with PHP 5.04
It is not possible to upload files.
I did a "chmod -R 777" on the albums directory.
In my php.ini file_uploads are on and apache has write privileges in the upload_tmp_dir
Below the error message and query when I try to upload a file.
Creëren van map albums/userpics/10006 niet gelukt !
Bestand: /www/martijn.lindonline.nl/html/cpg/db_input.php - Regel: 229
USER:
------------------
Array
(
[ID] => b66bdd751f74445c761f26cc822c0038
[am] => 1
[liv] => Array
(
[0] => 377
[1] => 379
[2] => 378
[3] => 380
[4] => 508
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 6
[user_group] => 2
[user_active] => YES
[user_name] => test
[user_password] => ********
[user_lastvisit] => 2005-09-09 10:47:55
[user_regdate] => 2005-09-08 22:12:00
[user_group_list] =>
[user_email] =>
[user_website] =>
[user_location] =>
[user_interests] =>
[user_occupation] =>
[user_actkey] =>
[user_favpics] =>
[disk_max] => 1024
[disk_min] => 1024
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 0
[group_name] => Registered
[upload_form_config] => 0
[group_quota] => 1024
[can_see_all_albums] => 0
[group_id] => 2
[groups] => Array
(
[1] => 2
)
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content FROM cpg132_filetypes;
[1] => SELECT * FROM cpg132_users WHERE user_id='6'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '014ed27501ba4df67b59a4fe0529d92f'
[2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (2)
[3] => SELECT group_name FROM cpg132_usergroups WHERE group_id= 2
[4] => DELETE FROM cpg132_banned WHERE expiry < '2005-09-09 10:54:36'
[5] => SELECT * FROM cpg132_banned WHERE ip_addr='my.ip.adr.here ' OR ip_addr=my.ip.adr.here OR user_id=6
[6] => SELECT category FROM cpg132_albums WHERE aid='29' and (uploads = 'YES' OR category = '10006')
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[album] => 29
[MAX_FILE_SIZE] => 5120000
[title] =>
[caption] =>
[keywords] =>
[event] => picture
)
==========================
Page generated in 0.448 seconds - 7 queries in 0.011 seconds - Album set :
I have made a test aqccount:
http://martijn.lindonline.nl/cpg/
user test
pass cpg
I hope you can help me with this one.
If you are using SELinux try disabling it. Some users have reported that this solves such problems for them.
Thank you. Disabeling this feature solved the problem.