crashzero2000
Goto Top

PHP unter CentOS Linux 5.5 läuft nicht

PHP unter CentOS Linux 5.5 läuft nicht

Hallo IT-Gemeinde,

ich habe einen CentOS Linux 5.5 mit installiertem Apache,MySql und PHP interpreter laufen.
WebMin als V 1.510 als Konfig-Oberfläche.
Kernel and CPU Linux 2.6.18-194.3.1.el5 on i686

MySQL

Leider bekomme ich den PHP Interpreter nicht zum laufen, auf der Konsole
php -v

zeigt er mit das PHP 5.1.6 (build 31.3.2010) mit der Zend Engine V2.1.0 läuft zumindest vorhanden ist.

Wenn ich die php-info Datei

<?php
phpinfo();
?>

aufrufe, zeigt er mit lediglich den Quellcode, läuft also nicht über den PHP.
Über Yum habe ich die Respitories schon geupdatet und die neusten Versionen installiert.

Package updates All installed packages are up to date

Ein Yum-installiertes phpmyadmin zeigt das gleiche Problem [Quellcodeanzeige].
Ein manuell installiertes phpmyadmin auch.

Restarts der httpd haben nix gebracht.

php The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) Running latest 5.1.6-27.el5 Installed
php-cli Command-line interface for PHP Running latest 5.1.6-27.el5 Installed
php-common Common files for PHP Running latest 5.1.6-27.el5 Installed
php-devel Files needed for building PHP extensions. Running latest 5.1.6-27.el5 Installed
php-gd A module for PHP applications for using the gd graphics library Running latest 5.1.6-27.el5 Installed
php-imap A module for PHP applications that use IMAP. Running latest 5.1.6-27.el5 Installed
php-ldap A module for PHP applications that use LDAP. Running latest 5.1.6-27.el5 Installed
php-mcrypt Standard PHP module provides mcrypt library support Running latest 5.1.6-15.el5.centos.1 Installed
php-mssql Standard PHP module provides mssql support Running latest 5.1.6-15.el5.centos.1 Installed
php-mysql A module for PHP applications that use MySQL databases. Running latest 5.1.6-27.el5 Installed
php-odbc A module for PHP applications that use ODBC databases. Running latest 5.1.6-27.el5 Installed
php-pdo A database access abstraction module for PHP applications Running latest 5.1.6-27.el5 Installed
php-pear PHP Extension and Application Repository framework Running latest 1.4.9-6.el5 Installed
php-soap A module for PHP applications that use the SOAP protocol Running latest 5.1.6-27.el5 Installed
php-xml A module for PHP applications which use XML Running latest 5.1.6-27.el5 Installed
php-xmlrpc A module for PHP applications which use the XML-RPC protocol Running latest 5.1.6-27.el5 Installed
phpmyadmin Web application to manage MySQL Running latest 2.11.10-2.el5.rf Installed

Wo muß ich ansetzen um das Problem zu beseitigen ?

Content-Key: 146033

Url: https://administrator.de/contentid/146033

Ausgedruckt am: 28.03.2024 um 22:03 Uhr

Mitglied: RedEye
RedEye 01.07.2010 um 11:20:56 Uhr
Goto Top
Hallo,

wie rufst Du die Infodatei auf? konsole oder Browser?
Wenn via konsole zeigt er Dir natürlich den Quelltext denn das steht in der phpinfo() auch so drinnen.

--
LG
RedEye
Mitglied: crashzero2000
crashzero2000 01.07.2010 um 11:23:43 Uhr
Goto Top
Hy RedEye,
von einem Client-Browser rufe ich die Info auf.
FF & IE
Mitglied: RedEye
RedEye 01.07.2010 um 11:33:04 Uhr
Goto Top
Dann sag ich mal das Dein Apache nichts von PHP weiß und deshalb auch keine PHP-Files nicht geparsed werden.

Bin leider kein Linuxprofi aber schau mal ob alle PHP-Module geladen sind.
Mitglied: crashzero2000
crashzero2000 01.07.2010 um 11:37:10 Uhr
Goto Top
Ha, ich habs grad hinbekommen BOOAHHHHHHHHHHH

In der Conf /etc/httpd/conf.d/php.conf waren die php-Endungen noch ausgeklammert, warum auch immer.
ich kenne es so das nach der Inst. die conf korrekt korrigiert bzw. anlegt, hat er leider nicht getan.

Trotzdem vielen dank.
Mitglied: crashzero2000
crashzero2000 01.07.2010 um 11:38:17 Uhr
Goto Top
Genau damit hattest du recht, allerdings bin ich davon ausgegangen das eine YUM-Inst die Korrektur automatisch vornimmt, wozu installiert man sonst nen php.
Mitglied: RedEye
RedEye 01.07.2010 um 11:40:07 Uhr
Goto Top
Na bitte, Problemlösung ging ja flott face-smile

--
LG
RedEye
Mitglied: crashzero2000
crashzero2000 01.07.2010 um 11:42:47 Uhr
Goto Top
Danke dir für deine schnelle Antwort ;)