Current time: 11-24-2024, 12:25 PM Hello There, Guest! (LoginRegister)


Post Reply 
New ispCP Software Installer *RC1*
Author Message
Gleno0h Offline
Junior Member
*

Posts: 19
Joined: Nov 2009
Reputation: 0
Post: #132
RE: New ispCP Software Installer *RC1*
I am getting this error after doing ... well nothing actually ... Its something with permissions, but how come it changed and how to fix it?

error on top of software upload page:
Code:
Warning: move_uploaded_file(/var/www/ispcp/gui/software/sw_depot/phpbb3_0_5-21.tar.gz) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/ispcp/gui/admin/software_manage.php on line 88

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/www/ispcp/gui/phptmp/phpvzWEWf' to '/var/www/ispcp/gui/software/sw_depot/phpbb3_0_5-21.tar.gz' in /var/www/ispcp/gui/admin/software_manage.php on line 88

The red line is line 88:
admin/software_manage.php

Quote:SQL_QUERY;
$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", "1", "toadd", "yes"));
$sw_id = $sql->Insert_ID();
if ($file == 0) {
$dest_dir = Config::get('GUI_SOFTWARE_DEPOT_DIR').'/'.$filename.'-'.$sw_id.$extension;
if (!is_dir(Config::get('GUI_SOFTWARE_DEPOT_DIR'))) {
@mkdir(Config::get('GUI_SOFTWARE_DEPOT_DIR'),0755,true);
}
if (!move_uploaded_file($_FILES['sw_file']['tmp_name'], $dest_dir)) {
// Delete software entry
$query = "DELETE FROM `web_software` WHERE `software_id` = ?";
exec_query($sql, $query, array($sw_id));
$sw_wget = "";
set_page_message(tr('ERROR: Could not upload file. Max. upload filesize ('.ini_get('upload_max_filesize').'B) reached?'));
$upload = 0;
}
}

Could it be because i did the gui and engine permission security fix?
1.0.3 ispCP

Thanks in advance.
12-27-2009 06:56 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
New ispCP Software Installer *RC1* - rbtux - 08-12-2009, 04:08 AM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 09:33 AM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 04:21 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 06:59 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 08:12 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 09-24-2009, 07:12 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 09-24-2009, 11:46 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 09-25-2009, 01:31 AM
RE: New ispCP Software Installer *RC1* - Gleno0h - 12-27-2009 06:56 AM
RE: New ispCP Software Installer *RC1* - Nuxwin - 04-09-2010, 12:43 AM
RE: New ispCP Software Installer *RC1* - Nuxwin - 10-06-2010, 11:13 AM
RE: New ispCP Software Installer *RC1* - Nuxwin - 10-06-2010, 04:03 PM

Forum Jump:


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