There were a couple of other fixes as well, including chown of the index.php file and a command that gave permissions, I am not sure if it made the knowledge base but there were definately some threads on it a few days ago when Magento Connect Launched.
You need to login to SSH and run the following command:
chmod -R o+w magento
If your install is in another folder, then change magento above to something else. It’s obviously not the ideal solution here, as you could have your install in the public_html (or httpdocs or whatever) directory, and setting the permissions to 777 isn’t the most secure method here. I’m sure Magento will work on that, I know they’re aware of the issue.
By the way, depending on how you’ve ran the install, you might have to run the PEAR package via SSH so the extensions actually show up in Magento Connect. If you see nothing in there, your install is not setup correctly. You’ll need to run the following from the base Magento directory, assuming you’ve installed Magento using the full installer, NOT the downloader (which I highly advise not using):
@Crucial: I’ve thought openbase_dir problem was resolved, do you still encounter issues with this?
Yup. I did an install about 2 hours ago and when I went to check the Magento Connect in the backend, there was a warning at the top. The extensions did show up though, but I actually had to remove the restriction from the account, which isn’t a problem or anything, but it did show up in there.
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/etc/pear.conf) is not within the allowed path(s): (/home/username:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/username/public_html/downloader/pearlib/php/PEAR/Config.php on line 625
Exactly, the “write file permissions” one. Yes, i have shell access but i still set the magento folder to chmod 777. Could it be a conflict with the UID/GID?
Thanks in advance, greetings from germany and gn8 (i have to go sleep now, it’s 02:34 at night)…
Are you doing a recursive chmod? Is there any sort of suexec running? What about the user:group status of the files/directories? Are you able to recursively chown that to your username? Is this hosted by a company or is it yours, e.g. you have full access?
If you’d like, you can send me a PM with your login details (for SSH) and I can take a look.
Get some sleep though, I’m about to head out myself to the sports bar and watch the Suns vs. Spurs game :D
@Crucial - hello , i’m back and hope you had a nice evening in the sports bar…
It’s my own Server(OpenSuse 10.2, PHP 5.2.5, mysql 5.0.26 and Plesk 8.3), i have full access and doing the most things with putty.
-And, no, i didn’t do the 777 recursive.
I try to explain what i did till now:
- wget and untar the magento 1.0 to accountroot/httpdocs/magento, did it as user root
- Then i did a chown -R/ chgrp -R with the correct account based username and groupID(after untar the UID was set to 510 and the GID to 521)
- After that i did the default chmod setup from the magento ssh install howto
Another problem is, that if i setup include_path(had the 5.2.5 include_path bug, http://www.magentocommerce.com/boards/viewthread/1848/) in my vhost.conf(like httpd.conf) to
i get an include problem again, but only in the backend at the (magento/index.php/admin/extensions_local/) connect manager
Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/downloader/pearlib/php/PEAR/Registry.php on line 28  in require_once() in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/downloader/pearlib/php/PEAR/Registry.php on line 28  in require_once("/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/downloader/pearlib/php/PEAR/Re") in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/lib/Varien/Pear.php on line 25  in require_once("/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/lib/Varien/Pear.php") in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/lib/Varien/Pear/Package.php on line 3  in require_once("/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/lib/Varien/Pear/Package.php") in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/core/Mage/Adminhtml/controllers/Extensions/LocalController.php on line 22  in include("/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/core/Mage/Adminhtml/c") in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 116  in Mage_Core_Controller_Varien_Router_Admin->match(Mage_Core_Controller_Request_Http) in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 147  in Mage_Core_Controller_Varien_Front->dispatch() in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/Mage.php on line 431  in Mage::run("default") in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/index.php on line 40
Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.:usr/share/php5/PEAR:/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/core:/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/local:/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/app/code/community:/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/lib:/srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/downloader') in /srv/www/vhosts/null212.de/subdomains/saintgeorges24/httpdocs/magento/downloader/pearlib/php/PEAR/Registry.php on line 28
Here’s a screenshot from the actual chmod , UID+GID status:
Ignore the SSH wiki, it’s incomplete. Do this instead:
tar -zxvf magento-1.0.tar.gz
chmod o+w var var/.htaccess app/etc
chmod -R o+w media
After that, switch over to your browser and run the web-based installer. Once that is finished, go back to SSH and run this (assuming you’re switching applications here and you’ve left off with what I told you to run above):