11,654products in the catalogue
An e-shop that had been quietly sending spam for four months
The owner had one problem: product photos wouldn't upload. There was more than one cause. The shop ran on code from around 2007 and PHP 5.2, a 16.7 GB error log had filled the disk, and malware on the server had been sending spam from it for four months.
- What we did
- First aid. We freed 19.5 GB, removed five malware files including the ones that kept restoring it, and stopped what was flooding the error log. Then we converted the encoding to UTF-8 and built a new storefront in PHP 8.2 on the same database the existing admin uses, so orders, invoices and shipping work for the staff as before. More than 12,000 old product and category URLs have redirects to the new ones, so the shop keeps its search rankings. Before launch the code went through twelve independent audits with 193 findings.
- Outcome
- Photos upload again and the server no longer sends spam. The new storefront is finished; the catalogue has a sitemap and structured data for search engines on product pages.
- PHP 8.2
- MySQL
- PDO
- Proxmox