Joomla -Less Parser - Cannot save the source map

March 29, 2016 460 views
Joomla DigitalOcean Ubuntu

I do get the following error when installing Joomla template into digital ocean Ubuntu server.
Less Parser - Cannot save the source map to "/var/www/html/templates/jm-joomclassifieds-ef4/css/offline.map"

The Page you are looking for doesn't exist or an other error occurred.
Go back, or head over to the home page to choose a new direction.
Back Home

I reinstalled several times already.
I have tired using Akeeba to extract and install, it fails to connect to sftp while I have ssh2 installed. the only time it connected, the extraction failed.
I eventually uploaded via Filezilla ...all files have 644 and 755 on folder as permission.
I tried to change the css folder to 777 for once and the template displayed but I cannot implement any changes , therefore I had to change it back to 755.

All folder permission remains unwriteable.

Please advice me on a better way to do it... maybe I m doing something wrong.

1 Answer

Find out the username of the PHP process using the following script:

$u = posix_getpwuid( posix_geteuid() );
echo $u['name'];

Place this script inside /var/www/html/ and access it over the browser. Note down the username, eg. www-data.

Execute the following commands via SSH:

sudo chown -R www-data:www-data /var/www/html
sudo find /var/www/html -type f -exec chmod 644 {} \;
sudo find /var/www/html -type d -exec chmod 755 {} \;

Now try installing the Joomla template.

Have another answer? Share your knowledge.