ispCP - Board - Support
PHP 5.3 и ошибка 500 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: Russian Corner (/forum-53.html)
+--- Thread: PHP 5.3 и ошибка 500 (/thread-12866.html)

Pages: 1 2


RE: PHP 5.3 и ошибка 500 - Vrungel - 03-30-2011 04:49 PM

Разобрался, для изменения лимита, нужно внести изменения в
/etc/apache2/mods-enabled/fcgid_ispcp.conf
нужно добавить
FcgidConnectTimeout 60
MaxRequestLen 140000000 (это длина запроса), значение я поставил произвольное, по умолчанию оно слишком мало.


RE: PHP 5.3 и ошибка 500 - DragonZX - 03-30-2011 06:43 PM

Огромное спасибо, добавил в мануал по установке.


RE: PHP 5.3 и ошибка 500 - anarking - 08-29-2011 05:24 AM

Pardon for speaking English

I'm getting the blank page for reseller/software_upload.php

I have made the changes to all fcgid.conf and fcgid_ispcp.conf files to add
FcgidConnectTimeout 120
MaxRequestLen 140000000

but still get the white screen.

No errors anywhere in any logs. except for magic_quotes and register_long_arrays deprecated warnings.

any ideas?


RE: PHP 5.3 и ошибка 500 - DragonZX - 08-29-2011 06:31 AM

It is not error 500, german build of autointstaller was written "as it can to work", we were trying to fix this, but it's still some mistakes... We need more developers.


RE: PHP 5.3 и ошибка 500 - anarking - 08-29-2011 12:39 PM

any clues or things to look at? i can spend some time trying to fix it. it kind of looks like it is in how it gets the IDs from the database to choose where to put the uploaded file. one of the problems anyways...

i think in this section of software_upload.php, but i don't know the rest of the system well enough yet to figure it out...

Code:
if ($success == 1) {
        $user_id = $_SESSION['user_id'];
        $upload = 1;
        if($file == 0) {
            $fname = $_FILES['sw_file']['name'];
        } elseif($file == 1) {
            $fname = substr($_POST['sw_wget'], (strrpos($_POST['sw_wget'], '/')+1));
        }
        $filename = substr($fname, 0, -7);
        $extension = substr($fname, -7);
            $query="
                INSERT INTO
                    `web_software`
                (
                    `reseller_id`, `software_name`, `software_version`, `software_language`, `software_type`, `software_db`,
                    `software_archive`, `software_installfile`, `software_prefix`, `software_link`, `software_desc`, `software_status`
                ) VALUES (
                    ?, ?, ?, ?, ?, ?,
                    ?, ?, ?, ?, ?, ?
                )
            ";
        $rs = exec_query($sql, $query, array($user_id, "waiting_for_input", "waiting_for_input", "waiting_for_input", "waiting_for_input", "0", $filename, "waiting_for_input", "waiting_for_input", "waiting_for_input", "waiting_for_input", "toadd"));
        $sw_id = $sql->Insert_ID();
        if ($file == 0) {
            $dest_dir = $cfg->GUI_SOFTWARE_DIR.'/'.$user_id.'/'.$filename.'-'.$sw_id.$extension;
            if (!is_dir($cfg->GUI_SOFTWARE_DIR.'/'.$user_id)) {
                @mkdir($cfg->GUI_SOFTWARE_DIR.'/'.$user_id,0755,true);
            }

i think however it is getting the "user_id" is incorrect, wrong table/column, but I haven't found its origin yet


RE: PHP 5.3 и ошибка 500 - DragonZX - 08-29-2011 05:22 PM

Please write to a special thread!!