Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: beckynet on February 05, 2009, 01:26:20 PM
-
Help, I want to install Magento (www.magentocommerce.com) but magento need php 5.2 or greater.
Magento provide a php5-cgi binary file that we must put in ibay/xxx/cgi-bin/
in the .htaccess of the magento ibay /xxx/html/
.htaccess
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
Action php5-cgi /cgi-bin/php5-cgi
AddHandler php5-cgi .php
############################################
## this line is specific for 1and1 hosting
#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php
############################################
## default index file
DirectoryIndex index.php
<IfModule mod_php5.c>
############################################
## adjust memory limit
php_value memory_limit 64M
php_value max_execution_time 18000
############################################
## disable magic quotes for php request vars
php_flag magic_quotes_gpc off
############################################
## enable resulting html compression
#php_flag zlib.output_compression on
</IfModule>
<IfModule mod_deflate.c>
############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter
#SetOutputFilter DEFLATE
# Netscape 4.x has some problems
#BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
#BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Dont compress images
#SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies dont deliver the wrong content
#Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_ssl.c>
############################################
## make HTTPS env vars available for CGI mode
SSLOptions StdEnvVars
</IfModule>
<IfModule mod_rewrite.c>
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
############################################
## you can put here your magento root folder
## path relative to web root
#RewriteBase /magento/
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
############################################
## always send 404 on missing files in these folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
############################################
## never rewrite for existing files, directories and links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
RewriteRule .* index.php [L]
</IfModule>
############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead
AddDefaultCharset Off
#AddDefaultCharset UTF-8
<IfModule mod_expires.c>
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
ExpiresDefault access plus 1 year
</IfModule>
############################################
## By default allow all access
Order allow,deny
Allow from all
############################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags
#FileETag none
But it does not work.
Should I do something else in php.ini or httpd.conf ?
Thanks a lot for your help
Beckynet
-
Try using the PHP5-CGI contrib (http://wiki.contribs.org/PHP5). Does this help?
-
Thanks for your respons.
Your way is good, but not enought.
Now I receive this, when I do a magento-check :
Your server does not meet the following requirements in order to install Magento.
The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:
You are missing the mcrypt extension
You are missing the pdo_mysql extension
The following requirements were successfully met:
You have PHP 5.2.0 (or greater)
Safe Mode is off
You have MySQL 4.1.20 (or greater)
You have the curl extension
You have the dom extension
You have the gd extension
You have the hash extension
You have the iconv extension
You have the pcre extension
You have the pdo extension
You have the simplexml extension
Where can I find mcrypt and pdo_mysql extension ?
Thanks a Lot
Beckynet
-
These are extensions that (as far as I can gather) are outside the standard PHP distribution. I think you're going to be out of luck with PHP as a CGI.
If you are really keen, you might try the full upgrade method instead (http://wiki.contribs.org/PHP#PHP_5), but note that this may make it hard to update SME Server in the future.
-
Hello I've find a solution here !
http://www.magentocommerce.com/knowledge-base/entry/installing-magento-on-a-php4-server (http://www.magentocommerce.com/knowledge-base/entry/installing-magento-on-a-php4-server)
I've installed your package, and the I've replaced your php-cgi with this one renamed as php-cgi
http://www.magentocommerce.com/support/php5cgi/php5-cgi (http://www.magentocommerce.com/support/php5cgi/php5-cgi)
This is a complete solution for php5.
This solution is not very clean, but runing.
Why you not only use this single package to replace all the other (php5-cgi-mysql, php5-cgi-pear, php5-cgi-...) to produce a new rpm ?
Thanks for your contribs
Beckynet
-
missing the pdo_mysql extension
I'm having the same problem with egroupware 1.6.
php5-cgi is fine but the pdo_mysql belongs to mysql5. There would be a file for that (ie: /etc/php5/php.d/pdo_mysql.ini) enabling extension=pdo_mysql.so
An entry like "extension=pdo_mysql.so" in /etc/php5/php.ini makes some errors bypassed but of course the logs still show the missing extension error.
Copying pdo_mysql.so from an other sme7 upgraded to php5/mysql5 was not enough!!
-
Try This :
Follow PHP5-CGI contrib http://wiki.contribs.org/PHP5 (http://wiki.contribs.org/PHP5)
Go to console
cd /usr/bin/php5/
wget http://www.magentocommerce.com/support/php5cgi/php5-cgi
mv php-cgi php-cgi.orig # to rename original php-cgi to php-cgi.orig
mv php5-cgi php-cgi # to rename php5-cgi to php-cgi
/etc/init.d/httpd restart
Now you also have pdo_mysql and other...
Beckynet
-
Wow... Thanks for that!
I had to set permissions to 0755 for php-cgi...
Aslo, php.ini is wanted in /etc/php5cgi/
So I copied the one in /etc/php5
-
Nice try but no luck for me! EGroupware 1.6 has problem with imap. I had to upgrade instead of using php5-cgi