Usage of spip_loader

« Spip_loader » is a script that allows to install or to update your SPIP site automatically without uploading all the files by ftp.

Current version of spip_loader : 3.0.9

Use spip_loader to install SPIP automatically

  1. Download the script https://www.spip.net/spip-dev/INSTA...
  2. Set this file via ftp in the directory where you want to install SPIP (generally at the root of your servor).
  3. Call the script from your navigator http://www.monsite.tld/spip_loader.php
  4. The script checks if your hosting has the capability then indicates the SPIP version you are going to install or update.
  5. Launch the automatic installation.

Once SPIP installed, you can safely leave the script spip_loader.php (from version 2.1) on the server. Only the authorised and authenticated administrators will be able to proceed. The benefit is to be able, in case of alert, to update SPIP very easily.
From version 3.0.2 onwards, the spip_loader detects new versions concerning it and offers to update itself without the need for an FTP transfer.

Use spip_loader to proceed to an update

To update SPIP, proceed the same way:

  1. Put the script to your server (if not already done)
  2. Call the script from your navigator http://www.monsite.tld/spip_loader.php
  3. 3. Launch the automatic installation process

Before calling the script you should be identified as a webmaster.

By default only the author number 1 can proceed to this update.
If you want to add other authors you should edit this line of the script :
define('_SPIP_LOADER_UPDATE_AUTEURS', '1');

For example, to authorize authors 5, 6 and 8 to use the spip_loader, write the line like this:
define('_SPIP_LOADER_UPDATE_AUTHORS', '5:6:8');

Since version 3.0.2 you can define these parameters in a file that will be automatically included in spip_loader_config.php , so your parameters are maintained when spip_loader is updated.

What to do in case of failure?

spip_loader can fail to upload files. Generally it is caused by permissions issues on the server. In this case you will have to install SPIP:

  • either transferring manually the files via ftp
  • or using subversion or git (advanced users)

Author jack Published : Updated : 17/05/20

Translations : English, français, Nederlands, українська