Magento Forum

   
app/Mage.php was not found
 
stevenbos
Jr. Member
 
Total Posts:  5
Joined:  2010-02-02
 

Hi Experts,

I’m trying to install Magento 1.4 on a leased server running Plesk 9.3 on top of Centos 5.3.

I’ve created a domain and used this steps to install Magento:

wget http://www.magentocommerce.com/downloads/assets/1.4.0.1/magento-1.4.0.1.tar.gz
tar -zxvf magento-1.4.0.1.tar.gz
mv magento/* magento/.htaccess .
chmod o+w var var/.htaccess app/etc
chmod -R o+w media
./pear mage-setup .
./pear install magento-core/Mage_All_Latest-stable
rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*
rm -rf magento/ magento-1.4.0.1.tar.gz

If I open the page from Plesk, using the preview function, the page loaded says: “app/Mage.php was not found”

I’ve tried the file_exists code, which raises this error, and it only successfully return a value on the webroot. If a subfolders is used it returnes a file not found.

Any help would be appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
stevenbos
Jr. Member
 
Total Posts:  5
Joined:  2010-02-02
 

phpinfo can be found here

http://62.212.74.116/phpinfo.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
stevenbos
Jr. Member
 
Total Posts:  5
Joined:  2010-02-02
 

And i figured it out.

I had to chown all files to the pleskuser.

Looking for 2 days on the internets and found nothing. Then I come up with the solution myself smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
quark
Member
 
Total Posts:  60
Joined:  2007-12-15
Romania
 

Please explain how you solved the problem.
I have the same problem with Mage.php was not found!
Plesk 9.5.2, CentOS 5.3, Magento 1.4.1.0 installed on domain1.com root, second domain is domain2.com.

I tried all suggestions in index.php:

$mageFilename '../app/Mage.php';
or full path to Mage.php:
$mageFilename '/var/www/vhosts/domain1.com/httpdocs/app/Mage.php';

When I try to access domain2.com I get:

../app/Mage.php was not found

or

/var/www/vhosts/domain2.com/httpdocs/app/Mage.php was not found

The group:owner of Mage.php is: psacln:f_domain1name

When I try to access http://www.domain1.com/app/Mage.php I get:

Forbidden
You don\’t have permission to access /app/Mage.php on this server.
Apache/2.2.3 (CentOS) Server at http://www.domain1.com Port 80

Please attach the .htaccess files and index.php files for both domains.

 
Magento Community Magento Community
Magento Community
Magento Community
 
point4design
Sr. Member
 
Total Posts:  104
Joined:  2008-07-31
 

I’m having this exact same issue. Anyone know how I can fix it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
magento123
Member
 
Avatar
Total Posts:  64
Joined:  2010-12-30
 

Hello Quark,

Were you able to resolve it?

Please share
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top