Replies: 11 comments 6 replies
-
First of all you may want to get a fresh copy of phppsinfo from GitHub to have current requirements. When you upload your store from localhost to a remote server there are few places that need to be updated.
You may also want to update your .htaccess in the root of your shop to also match the new shop domain, but you could also regenerate it from the admin panel. You also need to regenerate mail templates because they also include references to localhost domain. |
Beta Was this translation helpful? Give feedback.
-
Thanks @SharakPL, for your patience, I followed the first, second and third steps you told me.
Finally I restarted apache2 and mysql. Can you please help me see where else I need to tweak or modify? If it was you who needed to upload the prestashop source code and mysql database, from your local wsl2 to a remote server (lamp environment), what are the necessary steps you would take? |
Beta Was this translation helpful? Give feedback.
-
Make sure everything is exactly as it should be. Is your domain name Try to access your admin panel first. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
This is the configuration file for my website ucoredata.tech.conf ucoredata.tech-le-ssl.conf Include /etc/letsencrypt/options-ssl-apache.conf Can you please help me to see if it will conflict with the prestashop configuration? |
Beta Was this translation helpful? Give feedback.
-
Sincerely, I have a question for you: |
Beta Was this translation helpful? Give feedback.
-
@stuffren I already explained required steps in my 1st post 😉 If it doesn't work for you then either you have misconfiguration in your app/config/parameters.php or within your server config. |
Beta Was this translation helpful? Give feedback.
-
Even though my problem was not solved, I still appreciate your response! Thank you! Finally, I suggest prestashop official to write a tutorial on 《How to publish win10 local prestashop source code and mysql database to server》. |
Beta Was this translation helpful? Give feedback.
-
@stuffren also a very important security requirement
|
Beta Was this translation helpful? Give feedback.
-
@SharakPL I haven't tried setting memory_limit to at least 512M, and I haven't enabled error_reporting either.I've tried all the solutions you've mentioned before to no avail, and I understand that you guys are usually busy with other things as well, and can't possibly just fix my problem, but I don't want to wait around any longer. Therefore, the solution I took was to reinstall it directly on the server side, and after a successful installation, the site is now working fine! This suggests that the problem I'm experiencing is not due to memory limitations. But it's clear that this is not a good approach, and it could even be argued that this is a bad approach, if you look at it in the long run. This time fortunately there is less data locally. The re-installation is only suitable for cases where the local data is small. Whether you are migrating from local (source code and SQL data) to remote server, or from remote server (source code and SQL data) to local, it would be a tragedy for your company's website operation and management if you have a large amount of data and there are major errors in the migration that can't be solved in a short period of time. Therefore, I strongly recommend prestashop to write a tutorial on 《How to publish local source code and mysql data to remote server》. And I thought of another tip: migrating local prestashop source code and data to a remote server is essentially a data recovery thing, which should be as simple as recovering our daily address book. The day before yesterday, I looked at the apache error log, constantly prompting “prestashop PHP source code” related to the error. This shows that the architectural design of prestashop may not have taken into account the need for users to “migrate” source code and data. After all this, I really hope that prestashop can become better, lighter and simpler! |
Beta Was this translation helpful? Give feedback.
-
Hi, Just to mention that In your own capture I can read that crucial folders are not writeable and the first thing PrestaShop does is write to /var/logs and /var/cache, did you try to solve that first? File permissions are wild on Win systems while in Unix systems are domesticated. You can visit dev docs and search for migration, installation, mod dev and will see that almost everything is documented. And just my take, why not create sites on an instance/server like the one you're gonna use in prod and then just change domains and delete cache? And try to enable dev mode as commented, first step to do to follow the errors. |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Describe the bug and add attachments
I have created website in win10 local wsl2 using prestashop open source program, which currently works fine on win10.
I uploaded the source code from the root directory of the website /var/www/ucoredata to the /var/www/ucoredata.tech directory on the remote server via scp.
At the same time, I also created a mysql database prestashop on the remote server and imported the local sql database into prestashop.
I used the virtual domain ucoredata.com locally for testing and development.
I have used the real domain ucoredata.tech on the remote server
I have changed the virtual domain ucoredata.com to www.ucoredata.tech in the remote database.
Currently when I visit www.ucoredata.tech through my browser, it prompts:
This page is not functioning properly www.ucoredata.tech cannot process this request at this time.
HTTP ERROR 500
Looking forward to your help and answers, thanks in advance! Thanks in advance!
Visit the frontend
![01](https://private-user-images.githubusercontent.com/136626456/332113745-1133b19c-24fa-4119-a8ef-b8501d94f868.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MzExMDgsIm5iZi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F0ZT0yMDI0MDcwMlQxNDMzMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMmUxMDIwMjExM2ZlNDczNWJmOTIyMmE3ZmJjNTkxZGUxMjBhOTdhOWE5OGU0NmQyZDY1ZmMzZDlkNzFiNDM4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.N5AUbPIQ-oq3zyj0u2TgCe-KHl0Y10EJQm7rFD7s6Rc)
Expected behavior
The site can be accessed normally
Steps to reproduce
Environment test: Upload environment test file
![03-phppsinfo](https://private-user-images.githubusercontent.com/136626456/332117349-185eec15-bc8f-48e5-9b9d-4cc200d61db4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MzExMDgsIm5iZiI6MTcxOTkzMDgwOCwicGF0aCI6Ii8xMzY2MjY0NTYvMzMyMTE3MzQ5LTE4NWVlYzE1LWJjOGYtNDhlNS05YjlkLTRjYzIwMGQ2MWRiNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMlQxNDMzMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05M2NiYWU0ODEzMDFkMzNjZWIxOGU3NzQzZGE3ZWQwNWJkNTZhNGY4ZmNjMGNmOTg1N2U4ZGNkMTM3YzllYzQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.84L9bdOvWHF5Qc8AZQ-HRpI9u01ApwlabudSw4GvfVw)
scp phppsinfo.php stuffren@192.3.112.214:/var/www/ucoredata.tech/
As you can see based on the screenshot, my configuration almost always matches the environment configuration officially required by prestashop.
Step 1. Package the source code in win10 local wsl2
Step 2: Upload the packaged file to the server using the scp command
Step 3: Unzip the file
Step 4: Create a new database
Name, login and password of the mysql database in the remote server.
Keep the same name, login name and password of the database in the remote server as the mysql database in the local wsl2.
PrestaShop version(s) where the bug happened
8.1.5;I didn't do the upgrade, it has nothing to do with the upgrade
PHP version(s) where the bug happened
PHP 8.1.2-1ubuntu2.17 (cli) (built: May 1 2024 10:10:07) (NTS)
If your bug is related to a module, specify its name and its version
no
Your company or customer's name goes here (if applicable).
no
Beta Was this translation helpful? Give feedback.
All reactions