Jump to content

Problem after migration to another hosting.


Balicus

Recommended Posts

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 by Balicus (see edit history)
Link to comment
Share on other sites

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

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

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 by Danny (see edit history)
Link to comment
Share on other sites

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 by Balicus (see edit history)
  • Like 1
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...