Current time: 12-23-2024, 01:05 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP 5.3 и ошибка 500
Author Message
Vrungel Offline
Newbie
*

Posts: 8
Joined: Mar 2011
Reputation: 0
Post: #11
RE: PHP 5.3 и ошибка 500
Разобрался, для изменения лимита, нужно внести изменения в
/etc/apache2/mods-enabled/fcgid_ispcp.conf
нужно добавить
FcgidConnectTimeout 60
MaxRequestLen 140000000 (это длина запроса), значение я поставил произвольное, по умолчанию оно слишком мало.
(This post was last modified: 03-30-2011 05:07 PM by Vrungel.)
03-30-2011 04:49 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #12
RE: PHP 5.3 и ошибка 500
Огромное спасибо, добавил в мануал по установке.
03-30-2011 06:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
anarking Offline
Junior Member
*

Posts: 29
Joined: Nov 2009
Reputation: 0
Post: #13
RE: PHP 5.3 и ошибка 500
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?
08-29-2011 05:24 AM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #14
RE: PHP 5.3 и ошибка 500
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.
08-29-2011 06:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
anarking Offline
Junior Member
*

Posts: 29
Joined: Nov 2009
Reputation: 0
Post: #15
RE: PHP 5.3 и ошибка 500
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
(This post was last modified: 08-29-2011 01:28 PM by anarking.)
08-29-2011 12:39 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #16
RE: PHP 5.3 и ошибка 500
Please write to a special thread!!
08-29-2011 05:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)