Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Blank screen after install
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Blank screen after install
#491
Blank screen after install 1 Year, 7 Months ago Karma: 0
Hi,

I have just installed nagiosQL 3.0 with a fresh install of nagios 3.0.x using php 5 and apache two. I have accessed the install screen and followed the instructions for a new setup. At the end I rename the install directory to install.x and attempt to access index.php. Nothing but a blank screen. When I execute '% php index.php' I get some xml that appears to be correct.

Since I can access the inital install pages (checks reveal all is okay) I believe to have installed everything correctly. Have I missed some sort of setting for php or apache?

--

Steve B
SteveB
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#496
Re:Blank screen after install 1 Year, 7 Months ago Karma: 0
Hi,

Same problem here. First, the index.php redirected to itself and Firefox complained about a loop.

Then after reinstalling and cleaning all, I am getting the blank page.

I will try to follow code to see where it is stopping execution and post back if I find something.

Regards.
palillo
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#498
Re:Blank screen after install 1 Year, 6 Months ago Karma: 5
There is only one reason to get a blank page with nagiosQL:

The template engine (PEAR::HTML_Template_IT) cannot access your template files.

Possible errors:

- Your path settings are wrong (or not available)
- php does not include PEAR (include path in php.ini)
- HTML_Template_IT is not installed
- some file right mismatch
- no connection to your database
martin
NagiosQL Founder
Posts: 309
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#499
Re:Blank screen after install 1 Year, 6 Months ago Karma: 0
Hi,

Thanks for your reply.

I was able to fix it.

This is what I had to do:

1. I did not have the PEAR path on php.ini so I added.
2. I did not have the module HTML_Template_IT so I install it.

After this, the problem still persisted (blank page).

Then, I renamed the nagiosql3 directory to nagiosql and it showed the login page. While trying to log in, it redirected to nagiosql3/admin.php.

The solution was to make a symbolic link from nagiosql3 to nagiosql because some pages reference a different directory.

I believe that if I performed the install on nagiosql directory instead of nagiosql3 maybe the path problem will not exist.

Thanks for your help. I hope this helps others.

Kind regards.
Andrés.
palillo
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#501
Re:Blank screen after install 1 Year, 6 Months ago Karma: 0
Thanks for the help.

I was able to work out the issue.

I had attempted to create a 5.1.4 php rpm for RHEL 4.

I found instructions here: www.cyberciti.biz/tips/how-to-install-ph...terprise-linux4.html

One thing I did not realize is that the configure used in the rpm spec compiles '--without-pear'. The clue was an earlier post. I found this by creating a test.php file (see the ection test.php below). Look at the configure command section of the test.php.

In order to get everything to work I needed to change the php.spec file as follows:

  • Change the configure command as listed below in section Configure. This setup will depend upon version and system config. The key here is '-with-pear'.

  • Buried in the installation pear is accessed and attempts to download some things in to the install path. Since I am hidden behind a firewall I needed to set the http_proxy environment variable just before the execution of the 'build-cgi' section. See the Proxy section below.

  • Since pear installs a few things not in previous versions you will need to remove those or the rpmbuild will error out. See the pear section below.



Once all that is done you can run the command ‘rpmbuild --bb php’ as listed in the instructions above. Afterwards I was able to install the package, restart httpd and suddenly I had access to nagiosQL3.0.

Hopefully, this will help others.

test.php
Code:



<?php phpinfo(); ?>






Configure
Code:


%configure \
--bindir=/usr/bin               \
--cache-file=../config.cache    \
--datadir=/usr/share            \
--enable-dba                    \
--enable-debug                  \
--enable-dom                    \
--enable-pdo                    \
--disable-rpath                 \
--enable-xmlreader              \
--enable-xmlwriter              \
--enable-bcmath                 \
--enable-calendar               \
--enable-dbx                    \
--enable-dio                    \
--enable-exif                   \
--enable-force-cgi-redirect     \
--enable-ftp                    \
--enable-gd-native-ttf          \
--enable-inline-optimization    \
--enable-magic-quotes           \
--enable-mbregex                \
--enable-mbstr-enc-trans        \
--enable-mbstring=shared        \
--enable-memory-limit           \
--enable-pic                    \
--enable-shmop                  \
--enable-sockets                \
--enable-sysvmsg                \
--enable-sysvsem                \
--enable-sysvshm                \
--enable-track-vars             \
--enable-trans-sid              \
--enable-ucd-snmp-hack          \
--enable-wddx                   \
--enable-yp                     \
--exec-prefix=/usr              \
--includedir=/usr/include       \
--infodir=/usr/share/info       \
--libdir=/usr/lib               \
--libexecdir=/usr/libexec       \
--localstatedir=/var            \
--mandir=/usr/share/man         \
--prefix=/usr                   \
--program-prefix=               \
--sbindir=/usr/sbin             \
--sharedstatedir=/usr/com       \
--sysconfdir=/etc               \
--with-apxs2=/usr/sbin/apxs     \
--with-BZ2                      \
--with-config-file-path=/etc    \
--with-config-file-scan-dir=/etc/php.d        \
--with-curl                     \
--with-db4=/usr                 \
--with-dom=shared,/usr          \
--with-dom-exslt=/usr           \
--with-dom-xslt=/usr            \
--with-exec-dir=/usr/bin        \
--with-expat-dir=/usr           \
--with-freetype-dir=/usr        \
--with-gd=shared                \
--with-gettext                  \
--with-gmp                      \
--with-iconv                    \
--with-imap-ssl                 \
--with-jpeg-dir=/usr            \
--with-kerberos                 \
--with-layout=gnu               \
--with-ldap=shared              \
--with-libdir=lib               \
--with-libxml-dir=/usr          \
--with-mime-magic=/usr/share/file/magic.mime  \
--with-mysql=shared,/usr        \
--with-ncurses=shared           \
--with-openssl                  \
--with-odbc                     \
--without-sqlite                \
--with-pear=/usr/share/pear     \
--with-pgsql=shared             \
--with-pic                      \
--with-png                      \
--with-png-dir=/usr             \
--with-pspell                   \
--with-snmp=shared              \
--with-snmp=shared,/usr         \
--with-unixODBC=shared,/usr     \
--with-xml                      \
--with-xmlrpc=shared            \
--with-zlib                     \
$* 





Proxy
Code:



# Install everything from the CGI SAPI build
http_proxy="my.proxy.net:8080" ; export http_proxy
pushd build-cgi
make install INSTALL_ROOT=$RPM_BUILD_ROOT 
mv $RPM_BUILD_ROOT%{_bindir}/php $RPM_BUILD_ROOT%{_bindir}/php-cgi







pear
Code:



# Remove irrelevant docs
rm -f README.{Zeus,QNX,CVS-RULES}

#par installation things
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/.channels
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/.depdb
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/.depdblock
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/.filemap
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/.lock
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/etc/pear.conf
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/usr/bin/pear
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/usr/bin/peardev
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/usr/bin/pecl

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
rm files.*



SteveB
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/02/12 17:09 By SteveB.
The administrator has disabled public write access.
 
Go to topPage: 1