forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: weinman on November 11, 2004, 08:23:54 pm

Title: My webhost is changing to PHPSUEXEC
Post by: weinman on November 11, 2004, 08:23:54 pm
According to my web host, they are in the process of "upgrading."

Also according to them:

"PHPSUEXEC runs php files as cgis. The reason for php running as a cgi rather than Apache module is to increase security while running php applications. This helps us track hackers and spammers."

One of the "known issues" is:
"3. Setting php file or directories to 777 will cause a 500 error."

Will there be a way around this problem for me once their upgrade is complete, or do I just say good-bye to Coppermine?
(Actually, I cannot stomach the thought and would more likely move my site to a new host.)

Pete
Title: Re: My webhost is changing to PHPSUEXEC
Post by: Nibbler on November 11, 2004, 08:33:46 pm
It is not a problem. Change your 777s to 755s and you should be fine.
Title: Re: My webhost is changing to PHPSUEXEC
Post by: Tranz on November 11, 2004, 08:45:44 pm
Nibbler and I have the same host running SUPHP and we have no problems running CPG. Just do as he suggested. In fact, this setting is better because we can edit php.ini and change the max file size that scripts can handle, among other settings.
Title: Re: My webhost is changing to PHPSUEXEC
Post by: weinman on November 12, 2004, 02:53:02 pm
Thanks, I'm glad to hear I will not have problems.. I have only limited knowledge and experience with scripts/php, etc, and was afraid all my efforts were about to go to waste!  I figured if I could not set the proper permissions I was going to be screwed...
Thanks for clearing it up for me.
Pete
Title: Can't upload pictures to a gallery in a server with suphp recently activated
Post by: pznet on May 23, 2009, 12:11:20 am
Hi.  First of all, I was looking how to add a new topic but I was just unable to find where or how!!  I saw a link to do that but then I couldn't find the links here...  :-[

With that said, I've been struggling for more than 4 days to upload pictures in a gallery the way we have always do:

- upload files to a folder within "domain.com/galerias/albums/album-name"
- create an album as admin
- upload pictures to the album using the batch feature

This way has always worked before.  But last week for security reason people where I have the server activated the suPHP feature and I believe that's what is causing problems.  Also, as recommended, I moved from  <!--Coppermine Photo Gallery 1.4.16 (stable)--> to 1.4.20, but I think we need to update to 1.4.23.

This is what I usually do when uploading pictures:

Login here

http://www.perezzeledon.net/galerias/login.php?referer=index.php

then I go to the batch process to upload many pictures at once and search the folder I need and get this URL

http://www.perezzeledon.net/galerias/searchnew.php?startdir=15-mayo-2009

I can see the thumbnails and all of that and every picture get automatically selected, but at the bottom (with debug activated) I get:

=====================================================

USER:
------------------
Array
(
    [ID] => bc51bad2d98c0f53a7ce097a133d2191
    [am] => 1
    [lang] => spanish
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [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] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [startdir] => 15-mayo-2009
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.5 - OK
------------------
mySQL version: 4.1.22-standard-log
------------------
Coppermine version: 1.4.20(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib64 -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.204 seconds - 20 queries in 0.001 seconds - Album set : ; Meta set: ;

=====================================================

And outside the frame where this info comes, I see:

=====================================================

"Alerts"

/include/functions.inc.php

    * Notice line 2684: Undefined variable: i

/searchnew.php

    * Notice line 101: Undefined variable: sel_album
    * Notice line 101: Undefined variable: sel_album
    * Notice line 169: Undefined variable: fullimagesize
    * Notice line 170: Undefined variable: fullimagesize
    * Notice line 169: Undefined variable: fullimagesize
    * Notice line 170: Undefined variable: fullimagesize

=====================================================

This line is repeated a lot.  Wasn't here before the upgrade, but now it is showing... but it was failing before and now anyway...

Ok, after I select the folder (15-mayo-2009) then, select folder "Test".

Then go to the end of the thumbnails list and click on button "Aņadir los ficheros seleccionados". This is usually the final step in the process
and the next I usually see is a bunch of blue "OK" images indicating that the pictures have been uploaded succesfully... but now I just get again the list of folders, no "OK" messages anywhere and no pictures uploaded at all.  BUT, if I upload just one single picture it works just fine.

I just see what you see at the image I'm attaching (the whole list of folders), at this address:

http://www.perezzeledon.net/galerias/searchnew.php?insert=1

And this is what comes in the debug part:

=================================================================

USER:
------------------
Array
(
    [ID] => bc51bad2d98c0f53a7ce097a133d2191
    [am] => 1
    [lang] => spanish
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [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] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [insert] => 1
)

==========================
POST :
------------------
Array
(
    [d0000] => 1
    [pics] => Array
        (
            [album_lb_id_i0000] => d0000
    [picfile_i0000] => MTUtbWF5by0yMDA5L0lNR180MzUxLkpQRw==
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => MTUtbWF5by0yMDA5L0lNR180MzUyLkpQRw==
    [album_lb_id_i0002] => d0000
    [picfile_i0002] => MTUtbWF5by0yMDA5L0lNR180MzkyLkpQRw==
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => MTUtbWF5by0yMDA5L0lNR180MzkzLkpQRw==
    [album_lb_id_i0004] => d0000
    [picfile_i0004] => MTUtbWF5by0yMDA5L0lNR180Mzk0LkpQRw==
    [album_lb_id_i0005] => d0000
    [picfile_i0005] => MTUtbWF5by0yMDA5L0lNR180Mzk1LkpQRw==
    [album_lb_id_i0006] => d0000
    [picfile_i0006] => MTUtbWF5by0yMDA5L0lNR180Mzk2LkpQRw==
    [album_lb_id_i0007] => d0000
    [picfile_i0007] => MTUtbWF5by0yMDA5L0lNR180Mzk3LkpQRw==
    [album_lb_id_i0008] => d0000
    [picfile_i0008] => MTUtbWF5by0yMDA5L0lNR180Mzk4LkpQRw==
    [album_lb_id_i0009] => d0000
    [picfile_i0009] => MTUtbWF5by0yMDA5L0lNR180Mzk5LkpQRw==
    [album_lb_id_i0010] => d0000
    [picfile_i0010] => MTUtbWF5by0yMDA5L0lNR180NDAxLkpQRw==
    [album_lb_id_i0011] => d0000
    [picfile_i0011] => MTUtbWF5by0yMDA5L0lNR180NDAyLkpQRw==
    [album_lb_id_i0012] => d0000
    [picfile_i0012] => MTUtbWF5by0yMDA5L0lNR180NDA1LkpQRw==
    [album_lb_id_i0013] => d0000
    [picfile_i0013] => MTUtbWF5by0yMDA5L0lNR180NDA2LkpQRw==
    [album_lb_id_i0014] => d0000
    [picfile_i0014] => MTUtbWF5by0yMDA5L0lNR180NDA4LkpQRw==
    [album_lb_id_i0015] => d0000
    [picfile_i0015] => MTUtbWF5by0yMDA5L0lNR180NDA5LkpQRw==
    [album_lb_id_i0016] => d0000
    [picfile_i0016] => MTUtbWF5by0yMDA5L0lNR180NDEwLkpQRw==
    [album_lb_id_i0017] => d0000
    [picfile_i0017] => MTUtbWF5by0yMDA5L0lNR180NDExLkpQRw==
    [album_lb_id_i0018] => d0000
    [picfile_i0018] => MTUtbWF5by0yMDA5L0lNR180NDEyLkpQRw==
    [album_lb_id_i0019] => d0000
    [picfile_i0019] => MTUtbWF5by0yMDA5L0lNR180NDEzLkpQRw==
    [album_lb_id_i0020] => d0000
    [picfile_i0020] => MTUtbWF5by0yMDA5L0lNR180NDE0LkpQRw==
    [album_lb_id_i0021] => d0000
    [picfile_i0021] => MTUtbWF5by0yMDA5L0lNR180NDE1LkpQRw==
    [album_lb_id_i0022] => d0000
    [picfile_i0022] => MTUtbWF5by0yMDA5L0lNR180NDE2LkpQRw==
    [album_lb_id_i0023] => d0000
    [picfile_i0023] => MTUtbWF5by0yMDA5L0lNR180NDE3LkpQRw==
    [album_lb_id_i0024] => d0000
    [picfile_i0024] => MTUtbWF5by0yMDA5L0lNR180NDE4LkpQRw==
    [album_lb_id_i0025] => d0000
    [picfile_i0025] => MTUtbWF5by0yMDA5L0lNR180NDE5LkpQRw==
    [album_lb_id_i0026] => d0000
    [picfile_i0026] => MTUtbWF5by0yMDA5L0lNR180NDIwLkpQRw==
    [album_lb_id_i0027] => d0000
    [picfile_i0027] => MTUtbWF5by0yMDA5L0lNR180NDIzLkpQRw==
    [album_lb_id_i0028] => d0000
    [picfile_i0028] => MTUtbWF5by0yMDA5L0lNR180NDI3LkpQRw==
    [album_lb_id_i0029] => d0000
    [picfile_i0029] => MTUtbWF5by0yMDA5L0lNR180NDMwLkpQRw==
    [album_lb_id_i0030] => d0000
    [picfile_i0030] => MTUtbWF5by0yMDA5L0lNR180NDMzLkpQRw==
    [album_lb_id_i0031] => d0000
    [picfile_i0031] => MTUtbWF5by0yMDA5L0lNR180NDM0LkpQRw==
    [album_lb_id_i0032] => d0000
    [picfile_i0032] => MTUtbWF5by0yMDA5L0lNR180NDM1LkpQRw==
    [album_lb_id_i0033] => d0000
    [picfile_i0033] => MTUtbWF5by0yMDA5L0lNR180NDM2LkpQRw==
    [album_lb_id_i0034] => d0000
    [picfile_i0034] => MTUtbWF5by0yMDA5L0lNR180NDQxLkpQRw==
    [album_lb_id_i0035] => d0000
    [picfile_i0035] => MTUtbWF5by0yMDA5L0lNR180NDQyLkpQRw==
    [album_lb_id_i0036] => d0000
    [picfile_i0036] => MTUtbWF5by0yMDA5L0lNR180NDQzLkpQRw==
    [album_lb_id_i0037] => d0000
    [picfile_i0037] => MTUtbWF5by0yMDA5L0lNR180NDQ0LkpQRw==
    [album_lb_id_i0038] => d0000
    [picfile_i0038] => MTUtbWF5by0yMDA5L0lNR180NDQ1LkpQRw==
    [album_lb_id_i0039] => d0000
    [picfile_i0039] => MTUtbWF5by0yMDA5L0lNR180NDQ2LkpQRw==
    [album_lb_id_i0040] => d0000
    [picfile_i0040] => MTUtbWF5by0yMDA5L0lNR180NDQ3LkpQRw==
    [album_lb_id_i0041] => d0000
    [picfile_i0041] => MTUtbWF5by0yMDA5L0lNR180NDQ4LkpQRw==
    [album_lb_id_i0042] => d0000
    [picfile_i0042] => MTUtbWF5by0yMDA5L0lNR180NDQ5LkpQRw==
    [album_lb_id_i0043] => d0000
    [picfile_i0043] => MTUtbWF5by0yMDA5L0lNR180NDUxLkpQRw==
    [album_lb_id_i0044] => d0000
    [picfile_i0044] => MTUtbWF5by0yMDA5L0lNR180NDUzLkpQRw==
    [album_lb_id_i0045] => d0000
    [picfile_i0045] => MTUtbWF5by0yMDA5L0lNR180NDU0LkpQRw==
    [album_lb_id_i0046] => d0000
    [picfile_i0046] => MTUtbWF5by0yMDA5L0lNR180NDU1LkpQRw==
    [album_lb_id_i0047] => d0000
    [picfile_i0047] => MTUtbWF5by0yMDA5L0lNR180NDU2LkpQRw==
    [album_lb_id_i0048] => d0000
    [picfile_i0048] => MTUtbWF5by0yMDA5L0lNR180NDU3LkpQRw==
    [album_lb_id_i0049] => d0000
    [picfile_i0049] => MTUtbWF5by0yMDA5L0lNR180NDU4LkpQRw==
    [album_lb_id_i0050] => d0000
    [picfile_i0050] => MTUtbWF5by0yMDA5L0lNR180NDYwLkpQRw==
    [album_lb_id_i0051] => d0000
    [picfile_i0051] => MTUtbWF5by0yMDA5L0lNR180NDYxLkpQRw==
    [album_lb_id_i0052] => d0000
    [picfile_i0052] => MTUtbWF5by0yMDA5L0lNR180NDYyLkpQRw==
    [album_lb_id_i0053] => d0000
    [picfile_i0053] => MTUtbWF5by0yMDA5L0lNR180NDYzLkpQRw==
    [album_lb_id_i0054] => d0000
    [picfile_i0054] => MTUtbWF5by0yMDA5L0lNR180NDY0LkpQRw==
    [album_lb_id_i0055] => d0000
    [picfile_i0055] => MTUtbWF5by0yMDA5L0lNR180NDY1LkpQRw==
    [album_lb_id_i0056] => d0000
    [picfile_i0056] => MTUtbWF5by0yMDA5L0lNR180NDY3LkpQRw==
    [album_lb_id_i0057] => d0000
    [picfile_i0057] => MTUtbWF5by0yMDA5L0lNR180NDY4LkpQRw==
    [album_lb_id_i0058] => d0000
    [picfile_i0058] => MTUtbWF5by0yMDA5L0lNR180NDY5LkpQRw==
    [album_lb_id_i0059] => d0000
    [picfile_i0059] => MTUtbWF5by0yMDA5L0lNR180NDcwLkpQRw==
    [album_lb_id_i0060] => d0000
    [picfile_i0060] => MTUtbWF5by0yMDA5L0lNR180NDcyLkpQRw==
    [album_lb_id_i0061] => d0000
    [picfile_i0061] => MTUtbWF5by0yMDA5L0lNR180NDczLkpQRw==
    [album_lb_id_i0062] => d0000
    [picfile_i0062] => MTUtbWF5by0yMDA5L0lNR180NDc0LkpQRw==
    [album_lb_id_i0063] => d0000
    [picfile_i0063] => MTUtbWF5by0yMDA5L0lNR180NDc1LkpQRw==
    [album_lb_id_i0064] => d0000
    [picfile_i0064] => MTUtbWF5by0yMDA5L0lNR180NDc2LkpQRw==
    [album_lb_id_i0065] => d0000
    [picfile_i0065] => MTUtbWF5by0yMDA5L0lNR180NDc3LkpQRw==
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.5 - OK
------------------
mySQL version: 4.1.22-standard-log
------------------
Coppermine version: 1.4.20(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib64 -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 1.384 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;

=================================================================

And outside the debug part, this message:

/searchnew.php

    * Notice line 577: Undefined variable: iframe_startfolder

All the folders are already 755 and I don't see any message regarding the folder being unable to write, like it usually happened before when the folders didn't have the correct permission.s

Our albums it's very visited.  So far we have over 50,000 pictures and I love software functionality, but now this problem is giving us a lot of problems.

Thank you a lot for any help.
Title: Re: My webhost is changing to PHPSUEXEC
Post by: Joe Carver on May 23, 2009, 01:28:27 am
Upgrade ASAP - then start a new thread here - http://forum.coppermine-gallery.net/index.php/board,48.0.html (http://forum.coppermine-gallery.net/index.php/board,48.0.html) - don't post debug unless you are asked - Upgrade!
Title: Re: My webhost is changing to PHPSUEXEC
Post by: Joachim Müller on May 23, 2009, 04:28:46 pm
Locking.