415 results for «cPanel» (page 31 of 42)
-
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…
-
php -v in SSH shows another version than your site: running the PHP you chose
The php command you type in the Terminal or over SSH is not required to be the version you chose for the site. The site uses what you set in…
-
PostgreSQL or MySQL: which one for your project
If you are installing WordPress, Joomla, PrestaShop or another ready-made application, use MySQL (here, MariaDB): that is what those applications were written for. If you are writing your own application,…
-
Automatic file transfers: scheduled SFTP and rsync from a script
To send or fetch files every night without opening FileZilla, use a cron job that runs the sftp command with an instruction file, or rsync over SSH. Both need key…
-
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…
-
Cron schedule examples: every 15 minutes, weekdays at 8, the first of the month
A cron schedule has five fields, in this order: minute, hour, day of the month, month and day of the week. An asterisk means “every”. The rest is learnt from…
-
Django DisallowedHost, CSRF failed and missing static files: the fixes
You put Django online and three errors show up that nearly everyone meets: DisallowedHost, CSRF verification failed and the page with no styles (static files give a 404). They have…
-
Error 1045 Access denied for user: the causes, in order
Error 1045 means one thing: the connection reached the database, and the database refused the username and password pair. It is not a server that is down or a closed…
-
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…
-
InnoDB or MyISAM: which storage engine, and what to do with an old table
Use InnoDB. It is the default engine of the MariaDB that runs on our hosting, it copes better with failures and simultaneous writes, and it is what current applications expect.…





