Chyba spracovania PHP scriptov

Programovacie jazyky, rady, poradňa...
hojko
Site Admin
Site Admin
Používateľov profilový obrázok
Príspevky: 38514
Registrovaný: 24 apr 2004, 18:29
Bydlisko: Európa
Kontaktovať používateľa:

Chyba spracovania PHP scriptov

Príspevok od používateľa hojko »

FreeBSD 6.2, Apache 2.2.4, PHP 5.2.1, MySQL 4.1.22 a phpMyAdmin 2.10.0.2 :)

Problem je ten, ze vsetko vyzera OK, phpMyAdmin bezi v poriadku, vytvaranie DB, uzivatelov, mazanie..., vsetko je OK. Joomla bezi tiez OK, teda skusal som len instalaciu a vsetko OK. Pri phpBB ostala prazdna biela stranka, netusim preco. Hlavny problem spociva ale v aplikacii MySQLdumper, to je script na prenos MySQL DB, nemal som s tym nikdy problem, fungovala na verzii PHP 4 aj 5, MySQL 4.0, 4.1 aj 5.0. Novoinstalovany server vsak robi problem a netusim kde, najma pokial niektore veci funguju OK.

V pripadne MySQLdumpera to vyzera tak, ze miesto vypisu scriptu sa zobrazi cast scriptu, ale parser musi fungovat, kedze phpMyAdmin ide. Problem spociva napriklad hned na zaciatku instalacie v riadku: echo '<div id="content" align="center"><p class="small"><strong>Version '.MSD_VERSION.' '.MSD_VERSION_ADD.'</strong><br><a href="index.php?force=1" class="small">'.$lang['install_forcescript'].'</a></p>';. V prihole je obrazok vypisu aj dany script + phpinfo.

Este pridam pkg_info...
> pkg_info
apache-2.2.4_2 Version 2.2 of Apache web server with prefork MPM.
autoconf-2.59_2 Automatically configure source code on many Un*x platforms
bzip-0.21 A block-sorting file compressor
curl-7.16.1 Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
cvsup-without-gui-16.1h_2 General network file distribution system optimized for CVS
db41-4.1.25_4 The Berkeley DB package, revision 4.1
expat-2.0.0_1 XML 1.0 parser written in C
ezm3-1.2_1 Easier, more portable Modula-3 distribution for building CV
fontconfig-2.4.2,1 An XML-based font configuration API for X Windows
freetype2-2.2.1_1 A free and portable TrueType font rendering engine
gettext-0.16.1 GNU gettext package
glib-2.12.11 Some useful routines of C programming (current stable versi
gmake-3.81_1 GNU version of 'make' utility
help2man-1.36.4_1 Automatically generating simple manual pages from program o
icu-3.6 International Components for Unicode (from IBM)
imake-6.9.0_1 Imake and other utilities from X.Org
jpeg-6b_4 IJG's jpeg compression utilities
libdrm-2.0.2 Userspace interface to kernel Direct Rendering Module servi
libiconv-1.9.2_2 A character set conversion library
libtool-1.5.22_4 Generic shared library support script
libxml2-2.6.27 XML parser library for GNOME
m4-1.4.8_1 GNU m4
mc-4.6.1_4 Midnight Commander, a free Norton Commander Clone
mysql-client-4.1.22 Multithreaded SQL database (client)
mysql-server-4.1.22 Multithreaded SQL database (server)
openssl-0.9.8e SSL and crypto library
p5-Authen-PAM-0.16_1 A Perl interface to the PAM library
p5-Net-SSLeay-1.30_1 Perl5 interface to SSL
p5-gettext-1.05_1 Message handling functions
pcre-7.0_1 Perl Compatible Regular Expressions library
pecl-filter-0.11.0 PHP extension for safely dealing with input parameters
pecl-hash-1.3 HASH Message Digest Framework for PHP
pecl-json-1.2.1 PHP extension for JSON (JavaScript Object Notation) seriali
perl-5.8.8 Practical Extraction and Report Language
php5-5.2.1_3 PHP Scripting Language (Apache Module and CLI)
php5-bcmath-5.2.1_3 The bcmath shared extension for php
php5-bz2-5.2.1_3 The bz2 shared extension for php
php5-calendar-5.2.1_3 The calendar shared extension for php
php5-ctype-5.2.1_3 The ctype shared extension for php
php5-curl-5.2.1_3 The curl shared extension for php
php5-dba-5.2.1_3 The dba shared extension for php
php5-dbase-5.2.1_3 The dbase shared extension for php
php5-dom-5.2.1_3 The dom shared extension for php
php5-exif-5.2.1_3 The exif shared extension for php
php5-extensions-1.1 A "meta-port" to install PHP extensions
php5-ftp-5.2.1_3 The ftp shared extension for php
php5-gd-5.2.1_3 The gd shared extension for php
php5-gettext-5.2.1_3 The gettext shared extension for php
php5-iconv-5.2.1_3 The iconv shared extension for php
php5-mysql-5.2.1_3 The mysql shared extension for php
php5-pcre-5.2.1_5 The pcre shared extension for php
php5-pdo-5.2.1_3 The pdo shared extension for php
php5-pdo_sqlite-5.2.1_3 The pdo_sqlite shared extension for php
php5-posix-5.2.1_3 The posix shared extension for php
php5-session-5.2.1_3 The session shared extension for php
php5-simplexml-5.2.1_3 The simplexml shared extension for php
php5-spl-5.2.1_3 The spl shared extension for php
php5-sqlite-5.2.1_3 The sqlite shared extension for php
php5-tokenizer-5.2.1_3 The tokenizer shared extension for php
php5-xml-5.2.1_3 The xml shared extension for php
php5-xmlreader-5.2.1_3 The xmlreader shared extension for php
php5-xmlwriter-5.2.1_3 The xmlwriter shared extension for php
php5-zlib-5.2.1_3 The zlib shared extension for php
pkg-config-0.21 A utility to retrieve information about installed libraries
png-1.2.14 Library for manipulating PNG images
portaudit-0.5.11 Checks installed ports against a list of security vulnerabi
portupgrade-2.2.6_3,2 FreeBSD ports/packages administration and management tool s
ruby+oniguruma-1.8.6,1 An object-oriented interpreted scripting language
ruby18-bdb-0.6.0 Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
scponly-4.6_1 A tiny shell that only permits scp and sftp
t1lib-5.1.1,1 A Type 1 Rasterizer Library for UNIX/X11
unarj-2.65_2 Allows files to be extracted from ARJ archives
unrar-3.70.b4,4 Extract, view & test RAR archives
unzip-5.52_3 List, test and extract compressed files in a ZIP archive
webmin-1.330_1 Web-based interface for system administration for Unix
xorg-libraries-6.9.0_1 X11 libraries and headers from X.Org
Prílohy
aaa.zip
Subor install.php
(6.72 KiB) 88 stiahnutí
aaa.jpg
phpinfo.zip
(7.59 KiB) 82 stiahnutí
chrono
VIP
VIP
Používateľov profilový obrázok
Príspevky: 7127
Registrovaný: 25 dec 2006, 15:17

Príspevok od používateľa chrono »

Skús zapnúť zobrazovanie chýb v php (php.ini: display_errors On).

Ak by sa nenačítal súbor runtime.php a načítal by sa súbor mysql.php zobrazila by sa iná chyba. Pri načítaní súboru functions.php by sa automaticky načítal aj runtime.php a zase by sa zobrazilo niečo iné. Podľa toho usudzujem, že sa nenačítal ani jeden z týchto súborov. To isté platí aj pre include jazykových súborov. Takže celé to vyzerá na nejaký problém s include alebo s právami adresárov. Presne to isté sa mi zobrazí (aj ten chýbajúci obrázok), ak zakážem Apache prístup do tých podadresárov (plus kopec chýb, kedže ja mám v php zapnuté zobrazovanie chýb).
hojko
Site Admin
Site Admin
Používateľov profilový obrázok
Príspevky: 38514
Registrovaný: 24 apr 2004, 18:29
Bydlisko: Európa
Kontaktovať používateľa:

Príspevok od používateľa hojko »

OK, uz je to vyriesene. Problem bol s pravami a skupinami, kedze som z ftp nahraval do web dira subory pod inou skupinou, kvoli bezpecnosti to nechcelo nacitat... K+ :)
Napísať odpoveď