Joomla - Template and FTP troubles

aaron_murray
aaron_murray used Ask the Experts™
on
Am pretty new to joomla as well as using our linux server that we run it on, so its quite possible were making some basic mistakes...

We have a custom template that installs fine on our local machines using XAMPP, however when we try and use the "upload package file" the file uploads fine but then we get a "Warning: Failed to move file!" error.

I thought this might be a ftp settings problem so I want to global configuration enabled ftp and put in the username, password, host and root for our FTP server and clicked save. We then get a "JFTP: :write: Bad response Could not save data. Error: Could not write to the configuration file" error?

Finally I tried to just use ftp to manually upload our custom template folder (not .zip) to the templates folder in joomla, using filezilla the folder was moved successfully. Then I went to extensions and discovered the new extension and clicked install, then I get "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."

I am pulling my hair our with everything that I try to do doesn't seem to work so I'm wondering whether we have some wrong setting on our web server, because it can't be normal that i'm running into this many errors whenever I try and do something?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Allan NisbetOwner at Storm IT Solutions LTD
Commented:
HI

I've come across this error a few times

When you check permissions via the joomla backend is everything green

Make sure the tmp folder is green also for correct permissions.

You dont mention which joomla version let me know and im sure well resolve this

Storm
Web & Mobile Developer
Commented:
First of all, disable FTP mode from Global configuration.

Second set correct path to tmp folder in global configuration.Check whether tmp folder of your site has correct folder permissions.
Commented:
In filezilla login and then right click on the folder you need Joomla to write to.
Set permissions to 777
 
then try it.

Change the permissions back after you are done.

SElvol

Author

Commented:
Hi I am using joomla 2.5.4 I can't see folder permissions in the backend (or at least I can't find it).

When I try to disable FTP in the global configuration file I get the message "JFTP::login: Unable to login Looks like User's credentials are no good..." but it says that global configuration file has successfully saved anyway.

My tmp folder is /var/www/vhosts/pokercreed.com/tmp at the moment, does that sound right ? I have set it to have permissions of 777.
Abhijeet RananawareWeb & Mobile Developer

Commented:
Then Just disable FTP layer and try to install again

Author

Commented:
I have now disabled FTP and set the directories to 777 and the template installed without any problems, I presume that it was just a permission problem then.

Thanks for the help.

Is this the standard way of installing templates/extensions to just set everything to 777 and then back again to 755?
Abhijeet RananawareWeb & Mobile Developer

Commented:
no its not standard way.Permission of directory should be 755. Do you have public_html folder
?? eg /var/www/vhosts/pokercreed.com/public_html/

??
Allan NisbetOwner at Storm IT Solutions LTD

Commented:
No you still have something wrong, you'll still encounter issues in future you shouldnt need to and wouldnt want to use 777 as its very unsecure to say the least

On checking a few of my client servers

the tmp folder is located like this

/var/www/vhosts/pokercreed.com/public_html/tmp

Might make a difference not sure im not a server guy I have a team of engineers for that
: )

Storm
Allan NisbetOwner at Storm IT Solutions LTD

Commented:
2 minds thinking alike : )

Storm

Author

Commented:
Hey no public folder anywhere, i'm not a server guy either and thought it was a bit odd that I needed to change permissions to do this every-time.

I have a php script that changes the required folders to 755 and back to 777 every-time i want to install a template or an extension, but don't really want to have to do this if it isn't the standard way.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial