Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.7

Bug #16930 Install overwrites index.php
Submitted: 2009-12-20 11:24 UTC
From: ardee Assigned:
Status: Open Package: pearweb_gopear
PHP Version: 5.2.5 OS: redhat linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-12-20 11:24 UTC] ardee (Russel Deuberry)
Description: ------------ If you run the web install by following these directions in documentation: " PEAR in hosting environments If you are running your site at a web hosting provider with no direct access to the server (via local logins, Telnet or SSH), you can use the PEAR Installer using the Web Frontend or (S)FTP. Go to http://pear.php.net/go-pear and save as go-pear.php. Copy go-pear.php to your server and open the corresponding URL in your browser, for example http://example.com/pear/go-pear.php." Your index.php file will be overwritten in your webroot folder EVEN IF the install is not ran from your webroot. Thankfully I had a backup but there is no reason for this. It should overwrite index.php in whatever directory it is put in. Expected result: ---------------- To not overwrite index.php and expose my web config to the world. Actual result: -------------- Overwrites your index.php. Rage ensues.

Comments

 [2009-12-20 18:14 UTC] doconnor (Daniel O'Connor)
-Package: Config +Package: PEAR
 [2010-04-08 03:02 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Type: Feature/Change Request +Type: Bug -Package: PEAR +Package: pearweb_gopear
Seems to a bug with the go-pear script it self not PEAR (two different beasts). Did you try doing this with http://pear.php.net/go-pear.phar instead?