442 results for «cPanel» (page 30 of 45)
-
Disk Usage: finding what fills your account
The account is filling up and you do not know why. cPanel has a screen built for this: Disk Usage, in the Files section. It shows, folder by folder, how…
-
Environment variables and secrets for your application
An environment variable is a value the application reads from outside the code: the database password, an API key, the address of a service. You keep it out of the…
-
Handing a website over to a client or another company: what to move and what to change
Handing over a site is four different things, and each has its own owner: the domain, the hosting account, the content, and the third-party accounts (analytics, e-mail, payments). The usual…
-
301 redirects when you change a page or a domain
You changed a page’s address, deleted an article or switched domain. Anyone holding the old address (in a bookmark, a search result, a link on another site) now lands on…
-
PHP sessions: where they live, and why users get logged out
A PHP session is a small file on the server, tied to the visitor by a cookie (the PHPSESSID). That is where the application keeps who is logged in, what…
-
Copying mailboxes with imapsync: how it works and what to prepare
imapsync is a command-line tool that connects to two IMAP mailboxes, the source and the destination, and copies messages folder by folder, skipping those already there. That is why you…
-
Connecting to MySQL from PHP: mysqli and PDO, with a working example
PHP has two ways of talking to the database: mysqli (MySQL and MariaDB only) and PDO (which also serves PostgreSQL and others). For a new project PDO is the safe…
-
A scheduled report by e-mail: a script, a cron job and an SMTP account
To get a summary of the site in your e-mail every morning (the day’s orders, enquiries received, new sign-ups) you need three pieces: a PHP script that fetches the figures…
-
Leaving a hosting provider: how to take everything with you before you cancel
Before you cancel, take five things: the site files, the databases, the e-mail, the list of DNS records, and the list of settings that are not in the files (PHP…
-
A cron job that does not run or sends no output: a checklist
Most of the time the cron job does run, and fails for one of six reasons: an incomplete path, an unprotected % sign, the wrong PHP version, a script without…





