Magento Forum

   
PHP 5 Issues
 
jusspitti
Member
 
Avatar
Total Posts:  37
Joined:  2008-01-21
 

Hi

I am traying to install Magento on a shred account that alredy have php4 or php5 (switchable on a control panel) but this server doesn’t have pdo_mysql installed for what I read on the installation and on the phpinfo page.

I am trying to use php5-cgi with no luck yet (I got 403 Forbidden, You don’t have permission to access /cgi-bin/php5-cgi/index.php/info.php on this server.) folder is 775 and the php5-cgi 775 (also tried 777).

I wonder is there is any workround for pdo_mysql requirement or something for php5-cgi to work here.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
jusspitti
Member
 
Avatar
Total Posts:  37
Joined:  2008-01-21
 

My .htacces file:

<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag short_open_tag on
</IfModule>

Action php5-cgi /cgi-bin/php5-cgi
AddHandler php5-cgi .php

DirectoryIndex index.php

RewriteEngine on

#RewriteBase /

RewriteCond %{REQUEST_URI} !^/media/
RewriteCond %{REQUEST_URI} !^/skin/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
kevbo75217
Jr. Member
 
Total Posts:  8
Joined:  2007-12-25
 

Hi,

Remove the following from you HTACESS file

Action php5-cgi /cgi-bin/php5-cgi
AddHandler php5-cgi .php

Replace it with one of the following

AddType application/x-httpd-php5 .php ( is used if your account is not on phpsuexec server ) this one will probally be the one you need
AddHandler application/x-httpd-php5 .php (is used if your account is on phpsuexec server )

You will have to try each one, but one of them will work depending on the type of server your php 5 is running on. Let me know if it works.

Thanks,
Kevin

 
Magento Community Magento Community
Magento Community
Magento Community
 
jusspitti
Member
 
Avatar
Total Posts:  37
Joined:  2008-01-21
 

Hi, Thanks for your comments

I probably be wrong, but I think that lines tells the server to handle .php files as if they were .php5

I am not sure if this is necessary because Magento runs ok with server’s php, I am able to install the store until the pdo_mysql validation.

I read in another post that a workaround for a server without this pdo_mysql library is to install php5 as a CGI with the magento instructions on the KB.

However when I do this I got the 403 Forbidden, You don’t have permission to access /cgi-bin/php5-cgi/index.php/info.php on this server

I am trying the htaccess you posted with no luck :(

Any idea?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jednorozec
Jr. Member
 
Avatar
Total Posts:  1
Joined:  2008-02-10
 
jusspitti - 09 February 2008 05:04 PM

I probably be wrong, but I think that lines tells the server to handle .php files as if they were .php5

That’s exactly what that line does. I had to use it because my hosting company defaults to php4 for .php files.

Could you get your hosting company to install pdo_mysql?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jusspitti
Member
 
Avatar
Total Posts:  37
Joined:  2008-01-21
 

Thanks for your comment

Yeah I guess there is nothing to do in my case.

If they don’t install pdo_mysql, I guess solution is changing Hosting company.

Can anyone suggest me hosting companies (with shared accounts for now) Magento friendly?

Thanks.

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