Search the Community
Showing results for tags 'permission denied'.
-
Hello, I have this configuration: - Windows Server 2019 with IIS 10 - Prestashop 1.7.5.1 - MySql 5.7.26.0 - PhpMyAdmin 4.8.5 - PHP 7.2.16 I want change the template (actually I use default template). I try to install "Moon Prestashop Theme" (but the problem is with all the themes) and appear the message: PHP Warning: move_uploaded_file(C:\inetpub\wwwroot/themes/moon.zip): failed to open stream: Permission denied in C:\inetpub\wwwroot\controllers\admin\AdminThemesController.php on line 378 PHP Warning: move_uploaded_file(): Unable to move 'C:\Windows\Temp\phpAA05.tmp' to 'C:\inetpub\wwwroot/themes/moon.zip' in C:\inetpub\wwwroot\controllers\admin\AdminThemesController.php on line 378 line 378 is: $dest If I instead click on "export the current theme" appear the message: PHP Warning: ZipArchive::close(): Failure to create temporary file: Permission denied in C:\inetpub\wwwroot\src\Core\Addon\Theme\ThemeExporter.php on line 139 line 139 is: return $zip->close(); Has anyone already had experience? How can it be solved? Thanks in advance for any help! Kind regards
- 1 reply
-
- permission denied
- export template
-
(and 1 more)
Tagged with:
-
Hello guys, I have been trying to figure this out for three days and it is driving the hell out of me. When I set the www folder permissions to 777 recursive, all problems are gone and Presta is smooth. But when I set the permissions to 755 recursive on all folders and files I get lots of problems such as fatal error smarty is not able to write to ../.. permission denied. I know that the best configuration would be 755 for folders and 644 for files but that's an enormous task to set them individually. Is there a shell command to do it all automatically? In addition, please note that the only user I have on the machine is root. I've read that for Apache guys, they give the www-data user certain permissions to control the files the way it wants. Would there be an equivalent way to it in nginx? Appreciated in advance, Phil.
- 2 replies
-
- nginx
- permissions
-
(and 7 more)
Tagged with:
-
Hi Guys, I have got funny problem. When I am trying to export new theme, by "Import/Export theme" module. After I click "Generate the archive now!" I am getting this error on the top: Permission denied. Please set permisssion to 666 on this folder: C:\xampp\htdocs\my_folders\themeinstallator/export/ How can I set the permission on my localhost, which is xampp ? Thank you in Advance! Chris
-
We hebben de site 1 op 1 overgezet naar een VPS. Alles gaat goed behalve het plaatsen van foto's. De afbeeldingen hebben 664 en dirs 775 gelijk aan de site op de shared server. Het bestand AdminImagesController 777 gegeven. Geen effect. Alle files en dirs hebben rw op user en groepniveau. Warning: unlink(/home/gebruiker/domains/xxzaak.nl/public_html/img/p/1/9/5/195-home_default.jpg): Permission denied in /home/gebruiker/domains/xxzaak.nl/public_html/controllers/admin/AdminImagesController.php on line 465 Regel 465: // delete product images using new filesystem. if ($product) { $productsImages = Image::getAllImages(); foreach ($productsImages as $image) { $imageObj = new Image($image['id_image']); $imageObj->id_product = $image['id_product']; if (file_exists($dir.$imageObj->getImgFolder())) { $toDel = scandir($dir.$imageObj->getImgFolder()); foreach ($toDel as $d) foreach ($type as $imageType) if (preg_match('/^[0-9]+\-'.$imageType['name'].'\.jpg$/', $d) || (count($type) > 1 && preg_match('/^[0-9]+\-[_a-zA-Z0-9-]*\.jpg$/', $d))) if (file_exists($dir.$imageObj->getImgFolder().$d)) unlink($dir.$imageObj->getImgFolder().$d); } } }
-
- unlink
- permission denied
-
(and 1 more)
Tagged with:
-
Hola! Recientemente he instalado la versión 1.5.6 de PS y me da algunos errores, como por ejemplo no me permite subir imágenes en los productos. He activado el reporte de errores y me sucede lo siguiente: Cuando quiero añadir una imagen a un producto me aparece una advertencia "undefined" y me reporta el siguiente error: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/js/tiny_mce/langs/es.js) is not within the allowed path(s): (/var/www/vhosts/miweb.es/httpdocs:/tmp) in /var/www/vhosts/miweb.es/httpdocs/controllers/admin/AdminProductsController.php on line 3504 También me da otros errores como: Al instalar un nuevo paquete de idioma me dice: Warning: fopen(/var/www/vhosts/miweb.es/httpdocs/.htaccess) [function.fopen]: failed to open stream: Permission denied in /var/www/vhosts/miweb.es/httpdocs/classes/Tools.php on line 1644 (He consultado los premisos de este archivo y es 777) Cuando pincho "Añadir nuevo producto": Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/js/tiny_mce/langs/es.js) is not within the allowed path(s): (/var/www/vhosts/miweb.es/httpdocs:/tmp) in /var/www/vhosts/miweb.es/httpdocs/controllers/admin/AdminProductsController.php on line 3504 En el alojamiento que tengo contratado no me han podido habilitar la extensión Mcrypt ni deshabilitar la opción PHP magic quotes ¿puede ser este el problema? Gracias por adelantado
-
when i try write content to a xml file using file_put_contents i am getting warning "failed to open stream: Permission denied" for a particular folder where my xml is created. i am using php 5.2 version in iis7 in windows 2008 server. it works fine my windows xp with iis 6. my code is if (is_writable(_PS_MODULE_DIR_.$this->name.'/')) { $basedir =_PS_MODULE_DIR_; $foldername= $this->name; $filename = "$basedir$foldername/config.xml"; chmod($filename,0755); file_put_contents($filename, utf8_encode($xml)); } else echo 'error' folder has required permissions as specified in all other forums. but it still not working. any help please? thanks, ganesh
- 3 replies
-
- file_put_contents error
- failed to open a stream
- (and 1 more)
-
He creado una version de prueba para exportar un determinado nº de productos a amazon de mi tienda.com dvdgold.co.uk a amazon.dvdgold.co.uk Para ello he duplicado todo el sistema de archivos (carpetas + files) y he hecho un duplicado de la base de datos a traves de phpmyadmin, también he modificado , creo , que correctamente el settings.ini.php con el nombre de la nueva base de datos. también he cambiado el PS_SHOP_DOMAIN y el PS_SHOP_DOMAIN_SSL dentro de ps_configuration. además he activado el debugging en config.ini.php /* Debug only */ @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); el error que me da es el siguiente : (lo podeis ver en amazon.dvdgold.co.uk) Warning: rename(/tmp/wrtsEjMUj,/var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/compile/4edeeb160d0ce3b8e36917eb107a579670edcca7.file.headernslider.tpl.php): Permission denied in /var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/sysplugins/smarty_internal_write_file.php on line 48 Warning: chmod(): No such file or directory in /var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/sysplugins/smarty_internal_write_file.php on line 50 Warning: rename(/tmp/wrtamM8Sd,/var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/compile/84d68f21e0908c14c947644dcf966f5b25629cf6.file.headblockslidingcart.tpl.php): Permission denied in /var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/sysplugins/smarty_internal_write_file.php on line 48 Warning: chmod(): No such file or directory in /var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/sysplugins/smarty_internal_write_file.php on line 50 Warning: rename(/tmp/wrt469cW7,/var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/compile/48b6934d8a960e731e1b9694dc53b3e073b72491.file.headerinsert.tpl.php): Permission denied in /var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/sysplugins/smarty_internal_write_file.php on line 48 Warning: chmod(): No such file or directory in /var/www/vhosts/amazon.dvdgold.co.uk/tools/smarty/sysplugins/smarty_internal_write_file.php on line 50 Warning: y sigue..... Alguien puede imaginarse qué está pasando?