Balicus Posted July 15, 2021 Share Posted July 15, 2021 (edited) Hello, On th beginning i would like write, im beginner user prestashop who lerning still. After transfering my shop (1.7) to new hosting (from home.pl to hetzner cloud) i recived error in front: Quote "Directory /../var/logs is not writable" and in debug mode such as below: Quote Fatal error: require_once(): Failed opening required '/.../var/cache/dev/appParameters.php' (include_path='/.../vendor/pear/pear_exception:/.../vendor/pear/console_getopt:/.../vendor/pear/pear-core-minimal/src:/.../vendor/pear/archive_tar:.:') in /.../config/bootstrap.php on line 87 On server i was installed Cyber Panel and choos PHP 7.2. Premission in /var - 755. Edited July 15, 2021 by Balicus (see edit history) Link to comment Share on other sites More sharing options...
Pravesh Singh Posted July 15, 2021 Share Posted July 15, 2021 Hello, Just create a folder called "log" , give the folder 755 permission. hopefully your issue should be solved. Kind regards Pravesh Singh Link to comment Share on other sites More sharing options...
Nickz Posted July 15, 2021 Share Posted July 15, 2021 You need to check all dependencies or requirements. Every hosting is a tat diferent. Link to comment Share on other sites More sharing options...
jmauclair Posted July 15, 2021 Share Posted July 15, 2021 Hi, First, modify the permission to 777 to see if your issue is resolved. /!\ : Setting your website directory to 777 create BIG SECURITY ISSUES so don't do it in production ! If the issue is resolved, it means that your web server doesn't own the directory var, so he can't write in it. If it's not the issue might be something else, but I don't see what it can be. If you have a self hosted website, depending of your OS, there are command lines that allow you to set your web server as the owner of the directory, else contact the administrator of your server. Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 I tested and instaled in other folder "fresh copy" and she work fine. In presta (from transfering) was owner/group as root, in fresh copy is other "xxxx1234" so i change it but now seeing "error 404". Relly i don't know what is the reason this problem. Link to comment Share on other sites More sharing options...
jmauclair Posted July 15, 2021 Share Posted July 15, 2021 404 mean that your url is not pointing on the good path Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 (edited) Domain and physical uri are correct in PS_SHOP_URL. Settings are similar as in "test shop" Edited July 15, 2021 by Balicus (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted July 15, 2021 Share Posted July 15, 2021 10 minutes ago, Balicus said: Domain and physical uri are correct in PS_SHOP_URL. and in htaccess or was it newly genereated? Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 Yes, i was copy htacess from "test" and changed path. I will trying copy again files from shop. Could it matter that it unpacks the store files from ".rar" on the server? Link to comment Share on other sites More sharing options...
Nickz Posted July 15, 2021 Share Posted July 15, 2021 Possible it is. Have you tried both ways? Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 (edited) No, i only one time downloaded files from hosting (home.pl) to private computer, compressed and sending to hetzner as .rar. Edited July 15, 2021 by Balicus (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted July 15, 2021 Share Posted July 15, 2021 if the rar install throws you an error try over ftp. Delete folders ofer teminal it is much quicker that way. Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 15, 2021 Share Posted July 15, 2021 10 minutes ago, Balicus said: No, i only one time downloaded files from hosting (home.pl) to private computer, compressed and sending to hetzner as .rar. You did try with Friendly URL reset? Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 1 minute ago, ComGrafPL said: You did try with Friendly URL reset? How do it ? I haven't acces to back office. Link to comment Share on other sites More sharing options...
Danny Posted July 15, 2021 Share Posted July 15, 2021 (edited) 37 minutes ago, Balicus said: Yes, i was copy htacess from "test" and changed path. I will trying copy again files from shop. Could it matter that it unpacks the store files from ".rar" on the server? How you uploaded the files? .rar directly to the server? If so, you need to unzip folders before uploading files to the server via FTP. Quote How do it ? I haven't acces to back office. you can do it using phpmyadmin, in database under psn3_configuration table search for entry with name field equal to: PS_REWRITING_SETTINGS, set= "0" save, cleare cache, check things, and then re-set to "1" , and re-check when done. Danny Edited July 15, 2021 by Danny (see edit history) Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 (edited) 6 minutes ago, Danny said: How you uploaded the files? .rar directly to the server? If so, you need to unzip folders before uploading files to the server via FTP. you can do it using phpmyadmin, in database under psn3_configuration table search for entry with name field equal to: PS_REWRITING_SETTINGS, set= "0" save, cleare cache, check things, and then re-set to "1" , and re-check when done. Danny I uploaded .rar via SFTP directly and unzip via terminal. Now trying copy files via ftp without compressing. Edited July 15, 2021 by Balicus (see edit history) 1 Link to comment Share on other sites More sharing options...
Balicus Posted July 15, 2021 Author Share Posted July 15, 2021 I checked all ideeas but any not solves my problem. Link to comment Share on other sites More sharing options...
Nickz Posted July 15, 2021 Share Posted July 15, 2021 1 hour ago, Balicus said: I checked all ideeas but any not solves my problem. Have you checked all requierents? Apart from a host and a domain Recommended web server: Apache 2.2+, Nginx PHP 7.1+ MySQL 5.6+ installed with a database created FTP access (ask your hosting service for your credentials) Configuration In the PHP configuration (php.ini file) set memory_limit to "256M" and upload_max_filesize to "16M" (or more if available). If you do not have direct access to the php.ini file, ask your provider to change the settings for you. SSL certificate if you plan to process payments internally (not using PayPal for instance) Must have PHP extensions: CURL, DOM, Fileinfo, GD, Intl, Mbstring, Zip, Json, iconv To improve performances: MemCached, Apcu, OpCache plus some extra like more memory, Post Specs of the hetzner if you know them Link to comment Share on other sites More sharing options...
Balicus Posted July 19, 2021 Author Share Posted July 19, 2021 Hello, The reason was that there was no ssl added to the domain on the server. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now