PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache2 ignoriert einträge in php.ini



BigMack
19.10.09, 17:28
Hi,
habe unter VMware das leztze build von suse 11.2 installiert, dadrauf einen apacheserver mit php und mysql, klapt alles super, nur wenn ich jetzt ein eintrag unter /etc/php5/apache2/php.ini ändere zeigt es keine wirkung.
Ein
rcapache restart bewirkt auch nichts, die Aussage der phpinfo verändert sich nicht, immer nur konstant "upload_max_filesize 2M 2M" egal was für ein Wert ich in der php.ini eintrage.

Kann mir da einer weiter helfen?!?

p.s. die enträge wurden durch root vorgenommen, auch das system wurde öffters neugestartet!!

marce
19.10.09, 17:45
was sagt denn phpinfo, welche php.ini denn verwendet wird? Gibt's evtl. eine .htaccess oder vHost-Definition im Apache, der die Änderungen dort überschreibt?

BigMack
19.10.09, 19:11
Es wird schon die richtige php.ini verwendet "/etc/php5/apache2/php.ini".
Habe soeben auch eine .htaccess gefunden,der erste Eintrag in der ist:

<IfModule mod_php5.c>
php_flag short_open_tag On
php_flag magic_quotes_gpc Off
php_flag magic_quotes_sybase Off
php_flag magic_quotes_runtime Off
php_flag register_globals Off
php_flag session.auto_start Off
php_flag suhosin.session.encrypt Off
php_value upload_max_filesize 20M
php_value post_max_size 100M
</IfModule>


Muss ich noch was in der .htaccess verändern?

OliverH
20.10.09, 07:53
Wenn du die Eigenschaften, die in der .htaccess für PHP konfiguriert sind, ändern willst, dann hast du 2 Optionen:

1. in der .htaccess Datei ändern oder
2. in der .htaccess Datei alle Anweisungen zu PHP entefernen/auskommentieren und die Konfiguration in der php.ini vornehmen.

Gruß,

Oli

BigMack
20.10.09, 08:04
Das ist das Problem, die Anwendung will diese Einstellungen haben.
Die werden aber nicht übernommen auch ein ändern der php.ini bewirkt keine änderung

php_value upload_max_filesize 20M
php_value post_max_size 100M


bleiben nach Aufruf von phpinfo immer auf 2M.

marce
20.10.09, 08:06
poste doch mal die Ausgabe von phpinfo, die komplette php.ini und _alle_ relevanten Parts aus der Apache-Konfig.

BigMack
20.10.09, 11:30
19624

19625

19626

Hier, bitte
wenn noch was benötigt wird dann melden.

Danke im Voraus

BigMack
20.10.09, 19:24
Hi,
habe den Fehler gefunden, es liegt an "short_open_tag", habe es auf "short_open_tag On" gesetzt gehabt weil die Anwendung "Gallery 3" darübergemeckert hat.
Nehme ich den Eintrag wieder raus, übernimmt php die Werte aber die Anwendung meckert wieder
Gallery requires short_open_tag to be on.

Hat jemand ein Vorschlag was ich tun könnte !?!

BigMack
13.11.09, 18:19
Habe das Problem gelöst :)

man sollte den Eintrag short_open_tag nicht am anfang der php.ini ändern

; Production Value: 5

; short_open_tag
; Default Value: On
; Development Value: Off
; Production Value: Off



sondern in weiterem verlauf der php.ini unter:


; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = on


dann gibt es auch nicht diese Fehlfunktion :ugly:

p.s. Es hat mich bestimmt 2 Wochen meines Lebens gekostet.