Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Apache, Lighttpd, nginx, Cherokee
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

Also sieht die ".htaccess" nunmehr so aus:
---
############################################
## 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
php_flag cgi.fix_pathinfo on
---

Die Einstellungen des virtuellen Hosts habe ich beibehalten:
---
<Directory /var/www/web999/cgi-bin/>
Options ExecCGI
AllowOverride None
</Directory>

<Directory /var/www/web999/web/>
AllowOverride All
</Directory>
---

Der nun auftretende Fehler:
---
[Tue Apr 08 23:13:18 2008] [error] [client 91.67.131.58] File does not exist: /var/www/web999/cgi-bin/php5-cgi/index.php
[Tue Apr 08 23:13:20 2008] [error] [client 91.67.131.58] File does not exist: /var/www/web999/cgi-bin/php5-cgi/index.php
---
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by Joe User »

Überprüfe mal Deine PHP-Konfiguration, die ist etwas suboptimal, siehe Dokumentation...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

Und das Weglassen der Direktiven, sollte ich das noch einmal probieren?

(
<Directory /var/www/web999/cgi-bin/>
Options ExecCGI
AllowOverride None
</Directory>

<Directory /var/www/web999/web/>
AllowOverride All
</Directory>
)

Außerdem: die PHP-Einstellungen können es nicht sein, weil ich PHP seitens ISPConfig abgeschaltet habe. Macht ja keinen Sinn, mit PHP 5.1.2 zu arbeiten und parallel mit der cgi-php-variante 5.2.0
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by Joe User »

hahni wrote:Und das Weglassen der Direktiven, sollte ich das noch einmal probieren?
Kannst Du, ist aber für Dein Problem unerheblich.
hahni wrote:Außerdem: die PHP-Einstellungen können es nicht sein, weil ich PHP seitens ISPConfig abgeschaltet habe.
Für Dein aktuelles Problem ebenfalls unwichtig.
hahni wrote:Macht ja keinen Sinn, mit PHP 5.1.2 zu arbeiten und parallel mit der cgi-php-variante 5.2.0
Auch PHP-(F)CGI muss sinnvoll kompiliert und konfiguriert werden, mindestens eines ist bei Dir nicht der Fall.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

Vielen Dank für deine einstweiligen Bemühungen!

Selbstverständlich habe ich nicht irgendeine cgi-php version genommen sondern die, die von Magento zum Download angeboten wird!

Zwar bezieht sich das Howto auf PHP4, aber ich habe nunmal PHP 5.1.2 und kann mir nicht vorstellen, dass das Binary in der Konstellation nicht funktionieren sollte.

Übrigens: beim Rest bin ich gemäß Anleitung vorgegangen:
http://www.magentocommerce.com/knowledg ... hp4-server
freddy36
Posts: 273
Joined: 2008-03-20 17:31
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by freddy36 »

Hast du die binarys mal aus der shell heraus getestet???
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

du meinst, einfach einmal aufrufen, um sicherzustellen, dass es beim upload nicht beschädigt wurde?
freddy36
Posts: 273
Joined: 2008-03-20 17:31
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by freddy36 »

upload? rechte richtig?
Einfach mal nen einfaches php script mit der cgi binary laufen lassen...
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

das probiere ich nachher gleich mal aus! Die berechtigungen stimmen. ich bin strikt nach der anleitung von magento vorgegangen! genau um solche gründe auszuschließen! :(
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

Wenn ich das Binary auf der Shell ausführe, kommt ein Segmentation Fault. Nun führe ich das mal darauf zurück, dass das CGI einige Parameter erwartet, die es nur in einer Apache-Umgebung hat und deswegen nicht funktioniert?
freddy36
Posts: 273
Joined: 2008-03-20 17:31
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by freddy36 »

Segmentation Fault = Hardware defekt (speicher) oder ungeeignete binaries. Ich tippe eher auf zweiteres ;)

Keine Ahnung was das da für ein gefrickel ist, besorg dir die richtigen binaries oder kompiliere php selber.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: Magento als php-cgi auf ISPConfig-System (htaccess-Probleme)

Post by hahni »

ein zuverlässiges update von 5.1.2 auf 5.2.0 oder höher für ubuntu 6.06 lts würde mich auch zufriedenstellen. scheint aber leider nicht möglich zu sein?
Post Reply