Apache 22 und Php Probleme

Marco1992

Active Member
Guten Abend,
Ich habe ein kleines problem.
Ich habe auch meinen Server Apache 22 und Php 5 installiert.
Die httpd.conf habe ich auch eingerichtet.
Wenn ich jetzt auf die Seite gehe bekomme ich nur ein weißes Bild.
Wie kann ich das beheben.

Danke im vorraus

Mit freundlichen Grüßen
Marco
 
Schreibe in die index.html, dass der Hintergrund schwarz sein soll. *SCNR*

Wie wäre es wenn du die httpd.conf und alle weiteren Dinge die du verändert hast hier postest? Das würde die Raterei ungemein reduzieren ;)

Nichts für ungut :)
 
Hey,
Das ist meine httpd.conf
Code:
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module        libexec/apache22/libphp5.so
#
#
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User www
Group www

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
^[ (escape) menu  ^y search prompt  ^k delete line   ^p prev li   ^g prev page
^o ascii code     ^x search         ^l undelete line ^n next li   ^v next page
^u end of file    ^a begin of line  ^w delete word   ^b back 1 char
^t begin of file  ^e end of line    ^r restore word  ^f forward 1 char
^c command        ^d delete char    ^j undelete char ^z next word
^[ (escape) menu  ^y search prompt  ^k delete line   ^p prev li   ^g prev page
^o ascii code     ^x search         ^l undelete line ^n next li   ^v next page
^u end of file    ^a begin of line  ^w delete word   ^b back 1 char
^t begin of file  ^e end of line    ^r restore word  ^f forward 1 char
^c command        ^d delete char    ^j undelete char ^z next word
L: 471 C: 1 ===================================================================
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include etc/apache22/extra/httpd-mpm.conf

# Multi-language error messages
#Include etc/apache22/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include etc/apache22/extra/httpd-autoindex.conf

# Language settings
Include etc/apache22/extra/httpd-languages.conf

# User home directories
#Include etc/apache22/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include etc/apache22/extra/httpd-info.conf

# Virtual hosts
#Include etc/apache22/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include etc/apache22/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include etc/apache22/extra/httpd-dav.conf

# Various default settings
#Include etc/apache22/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include etc/apache22/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
#
#AddModule mod_php5.c
<IfModule mod_php5.c>
     DirectoryIndex index.php index.html
</IfModule>
#php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Include etc/apache22/Includes/*.conf
 
Hi,

das liegt wohl daran, dass Deine httpd.conf extrem seltsam aussieht. Ich will ned wissen wo Du die her hast. Ich würde dringendst empfehlen mal die zu nehmen wo durch den Port installiert wurde.

Gruß Bummibär
 
guten morgen
das habe ich auch schon versucht
wenn ich das php modul raus nehme sehe ich nur noch den quelltext
ist ja auch richtig
aber wenn ich ds rein mache auch inder normlen httpd.conf habe ich diesen fehler
ich sehe einach nur eine weisse seite
ich habe es auch schon mit einer anderen php vetsion versucht
das komische ist wenn ich die test.php aufrufe sehe ich das
und die hp die ich hosten will hatt schon auf eine anderem freebsd aerver geklappt

mit freundlichen gruessen
marco
 
Moin,

scheinbar han ich mich ned klar genug ausgedrückt; In der httpd.conf fehlt so ca. pi mal Tatze rd. 65% dessen was ein Apache zwingend braucht um überhaupt zu laufen.

Folgendes Vorgehen führt zum Ziel:
- httpd.conf nehmen wo er installiert hat
- danach php relevante Dinge ergänzen, z.B. mod_php oder php-cgi oder fastcgi mit php-cgi etc.
- Server spezifische Werte entspechend anpassen, z.B. Listern IP / Port, Servername usw.
- php spezifische Dinge wie php.ini, extensions.ini usw. bärig fein anpassen
- /etc/rc.conf bärig fein für Apache aktualisieren
- ggf. Kernel Modul laden je nach gewünschter Konfig
- apachebär starten, logfiles checken ggf. sind dort Hinweise was noch ned ganz passt

Gruß Bummibär
 
Hey,
Ich habe das problem halb gelöst.
Jetzt kann meine hompage nicht auf die mysql datenbank zugreifen
 
Zuletzt bearbeitet:
doh!


Bekommst Du irgendwelche Fehlermeldungen? Hast Du mal in die Error-Log geguckt?
Benutzername, Passwort und Host geprüft? Läuft MySQL?
Hast Du die PHP-Extensions installiert?

Code:
php5-mysql-5.2.11_1 The mysql shared extension for php
php5-mysqli-5.2.11_1 The mysqli shared extension for php

Grüße,

Laty
 
Zuletzt bearbeitet:
Hey,
ich habe die von dir gegannten sachen installiert
das bekomme ich als fehler raus
Code:
[Sat May 29 14:35:13 2010] [error] [client 94.220.131.42] PHP Notice:  Undefined index: step in /usr/local/www/apache22/data/install/install.php on line 153, referer: http://91.194.90.173/install/index.html
[Sat May 29 14:35:16 2010] [error] [client 94.220.131.42] PHP Fatal error:  Call to undefined function mysql_connect() in /usr/local/www/apache22/data/install/config_account.php on line 17, referer: http://91.194.90.173/install/install.php
[Sat May 29 14:35:25 2010] [error] [client 94.220.131.42] PHP Warning:  include(config_player.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/rank.php on line 5, referer: http://xxx.xxx.xxx.xxx/
[Sat May 29 14:35:25 2010] [error] [client 94.220.131.42] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'config_player.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/data/rank.php on line 5, referer: http://xxx.xxx.xxx.xxx/
[Sat May 29 14:35:25 2010] [error] [client 94.220.131.42] PHP Fatal error:  Call to undefined function mysql_query() in /usr/local/www/apache22/data/rank.php on line 14, referer: http://xxx.xxx.xxx.xxx/
[Sat May 29 14:35:28 2010] [error] [client 94.220.131.42] PHP Warning:  include(config.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/reg.php on line 5, referer: http://xxx.xxx.xxx.xxx/login.php
[Sat May 29 14:35:28 2010] [error] [client 94.220.131.42] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'config.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/data/reg.php on line 5, referer: http://xxx.xxx.xxx.xxx/login.php
 
Also... das sieht mir nicht nach nem MySQL-Fehler aus, sondern eher nach einem Programmierfehler.
Die Fehlermeldungen sagen unter anderem das du versucht eine PHP-Datei einzubinden, welches das ausführende Script nicht finden kann.

PHP Warning: include(config.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/reg.php on line 5, referer: http://xxx.xxx.xxx.xxx/login.php

Vielleicht solltest du die Pfade überprüfen.

Grüße,

Michele
 
Das glaube ich dir.
Aber vielleicht hast du nicht alles kopiert oder der neue Server hat andere Pfade.

Grüße,
Michele
 
Danke an alle ihr habt mir die hinweise gegeben.
Ich habe jetzt jetzt geschaft.
ich doof habe in der extensions.ini einträge vergessen -.-"
Danke an alle
Mit freundlichen Grüßen
Marco
 
Guten Tag,
das Problem ist doch noch nicht ganz gelöst
die httpd-error.log zeigt mir
Code:
 <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php                                    /20090626/xsl.so' - /usr/local/lib/php/20090626/xsl.so: Undefined symbol &quot;d                                    om_node_class_entry&quot; in <b>Unknown</b> on line <b>0</b><br />
[Sun May 30 10:21:37 2010] [error] [client 188.100.49.182] PHP Notice:  Undefine                                    d index: page in /usr/local/www/apache22/data/index.php on line 8
[Sun May 30 10:21:37 2010] [error] [client 188.100.49.182] PHP Notice:  Undefine                                    d index: id in /usr/local/www/apache22/data/face/right.php on line 4
Ich habe bestimmt irgnend was vergessen ich komme nur leider nicht drauf
 
Also die seite klappt soweit nur ich habe noch einen fehler den ich nicht rausbekomme

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/xsl.so' - /usr/local/lib/php/20090626/xsl.so: Undefined symbol "dom_node_class_entry" in Unknown on line 0
 
Hey
das mit mysql klappt ja
aber irgendwie habe ich noch den fehler den ich im letzten post beschrieben habe
 
Zurück
Oben