UCMS - Upload Pages

The ucms.php Content Management System now has an Upload Pages facility.

Providing the local server (or virtual machine) can access the internet and has the necessary wput command installed, a blank page called 'wput' will allow the site to be uploaded directly to the remote web server once it ha been tested.

To set this up, you need to create a blank page and call it wput.

In the 'description' field, type the command used by wput to locate the files and upload them to the remote server.

For example, a site called 'example' can be uploaded to the ftp server at sample.co.uk  using the user name 'user' and the password 'password' with the contents of the local 'output' directory being placed in the  'httpdocs' directory on the remote server using the following:-

 

--basename=/var/www/example/output/ -u /var/www/example/output/* ftp://user:password@example.co.uk/httpdocs/

(all entered as a single line into the description field of the wput page)

The above strips out the /var/www/example/output part of the file names before sending them and ensures that all files in the directory are re-uploaded.

As the ucms.php system currently does not remove deleted pages from the output folder, it may be necessary to clean up the directories manually before uploading.

Also, this is simply an upload, not a synchronise, you will still need to use an ftp client to log in and remove any pages that have been deleted (or re-named).