Elxis CMS Forum
Extensions => Components => Topic started by: jimmyz on June 10, 2009, 12:58:08
-
Can anyone help?
I can't install com_sitemap_2.0
The error message is:
Upload component - Upload Failed
Unrecoverable Error "PCLZIP_ERR_READ_OPEN_FAIL (-2)"
PHP Error [Warning]
URI: index2.php
Path: /administrator/components/com_installer/installer.class.php
Line: 155
Invalid argument supplied for foreach()
Upload component - Failed
Installation file not found
[attachment deleted by admin]
-
OK now, I remembered it.
Go to > Global Configuration > Server > File Creation - File Permissions, check the "Dont CHMOD new files" instead of "CHMOD new files"
I'm on a shared server and I have asked the hosts to chown all files to me.
The screenshot is from filezilla.
Why is this happening?
[attachment deleted by admin]
-
This error PCLZIP_ERR_READ_OPEN_FAIL (-2) i can find a solution in Greek Language on our forum :
https://forum.elxis.org/index.php?topic=2260.0
-
I have meet the some problem with the IOS Sitemap.
jimmyz, please do the following:
1. Check the permissions of ALL the files & folders
Folders: 755
Files: 644
tmpr: 777
cache: 777
2. Delete the folders & files (with FTP):
components/com_sitemap/
administrator/components/com_sitemap/
3. Go & clean:
Login at the administration area -> Tools
and clean the temp & cache
4. Disable the gzip
Go at the administration area -> Global Configuration
5. Go & Install
Components -> Install / Unistall -> Fetch list of available extensions
Select the second icon in the right "Download & Install"
If with this steps you get the same error repeat the steps: 2 & 3 and then
Download the file: [url:http://www.elxis-downloads.com/com_downloads/download.html?id=187]IOS Sitemap 2.0[/url]
Unzip it local at your computer
Upload it at: /root/administrator/components/com_installer/component
Go Components -> Install / Unistall -> and press the Install button from the "Install From Directory"
Then please post back your comments.
-
Thank you all for replying.
As I mentioned, it is a shared server. I am user "jimmyz" and apache runs as user "apache" in a differnr group. When one installs a component through the installation tool, every file or folder created on server (by apache), has "apache" as owner and rights are like 400. You can't (as "jimmyz" user) move, delete, execute or do something else with the files, because you have no right to. I thought that elxis' tool in Global Configuration > Server > File Creation - File Permissions - "CHMOD new files", 777 would eliminate this problem, but unfortunately, it is not working for me. On the contrary, it created files with the rights as shown in picture comp-error2.jpg. As a solution, I had to set Global Configuration > Server > File Creation - File Permissions, "Dont CHMOD new files" and wait for my host to change manually the owner of the created files to "jimmyz". This way, installation problem solved as you can see at http://anaeth.gr/sitemap/
.
Any better solution?
[attachment deleted by admin]
-
Never use the automatic chmod of files in Elxis Global Configuration. We were very close on removing this feature but we finally left it as is. It can cause serious problems under some server environments. I will write once more the recommended Elxis file system set up.
1. If possible prepare Elxis for installation using the Elxis shell pre-installer. It will always install you the latest version automatically and will set up properly Elxis file system permissions. And all these in a couple of seconds. Elxis shell pre-installer requires SSH access. If you don't have SSH access tell your hosting provider to run this shell script for you.
Download: http://www.elxis-downloads.com/com_downloads/patches/142.html (http://www.elxis-downloads.com/com_downloads/patches/142.html)
Manual: https://www.elxis.org/guides/developers-guides/elxis-shell-pre-installer-how-to.html (https://www.elxis.org/guides/developers-guides/elxis-shell-pre-installer-how-to.html)
Main scope: The recommended set up is to have everything owned by the local FTP user and non-writeable to the web server. Only tmpr and cache directories needs to be writeable. If you use SUPHP permissions and file owner works quit differently. Your hosting provider is responsible if you need more help on this.
2. When you are going to install a component make the following 2 folders writeable:
/components/
/administrator/components/
When you finish installing the new component make them again non-writeable.