I've just performed a fresh installation of mantis-1.2.18 on a gentoo server, and after setting the date.timezone in php.ini the CSS styles fail to display correctly in firefox or chromium but strangely they seem to work fine in IE11. My software information is as follows:
lighttpd/1.4.35
postgres (PostgreSQL) 9.4.4
PHP 5.6.13
I'm not a web developer so I'm not too sure about how to go about debugging this. I tried running an older version of PHP (php 5.4.44) and, instead of the timezone error, I got an error indicating PHP was linked to an incorrect MySQL library. I then rebuilt PHP with MySQLND support which fixed the error - but then caused exactly the same issue as below; i.e. the presence of the error text makes the CSS work, without it the CSS does not load (maybe). I'm not sure if there is something wrong with my lighttpd configuration - the configuration was pulled from the old server and a few things tweaked to work on the new one... it's included below for the sake of it.
Many thanks,
Jason
lighttpd.conf
Code: Select all
server.modules = (
"mod_access",
"mod_alias",
"mod_fastcgi",
"mod_cgi",
"mod_accesslog",
"mod_evasive",
# "mod_redirect",
# "mod_rewrite",
)
################################# Config ###################################
server.document-root = "/storage/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "lighttpd"
server.groupname = "lighttpd"
server.port = 80
server.bind = "xxx.xxx.xxx.xxx"
#server.max-connections = 100
#server.kbytes-per-second = 128
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi" )
index-file.names = ( "index.php", "index.html", "nfsen.php", "index.cgi" )
#### virtual directory listings
#dir-listing.activate = "enable"
dir-listing.hide-dotfiles = "enable"
#### Only enable listing of directories
$HTTP["url"] =~ "^/firmware($|/)" {
dir-listing.activate = "enable"
}
$HTTP["url"] =~ "^/gentoo($|/|-rich)" {
# dir-listing.activate = "enable"
}
$HTTP["url"] =~ "^/($|/)" {
dir-listing.activate = "disable"
}
################################# Modules ###################################
#### mod_alias
alias.url = ( "/firmware/" => "/storage/www-server-firmware/" )
alias.url += ( "/scripts/" => "/storage/scripts/" )
alias.url += ( "/gentoo/" => "/storage/gentoo-packages-jason/" )
alias.url += ( "/gentoo-rich/" => "/storage/gentoo-packages-rich/" )
alias.url += ( "/cgi-bin/" => "/usr/local/squid/libexec/" )
#### mod_access
url.access-deny = ( "~", ".inc" )
#### mod_fastcgi, for PHP set cgi.fix_pathinfo = 1 in php.ini
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php.socket",
"bin-path" => "/usr/bin/php-cgi"
)
)
)
#### mod_evasive
evasive.max-conns-per-ip = 10
#### mod_accesslog
accesslog.format = "%{X-Forwarded-For}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
accesslog.use-syslog = "enable"
accesslog.filename = "/var/log/lighttpd/access.log"
#### mod_cgi
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl" )
Code: Select all
PHP Version 5.6.13-pl0-gentoo
SystemLinux gentoo-linuxbox 4.1.6-vmware #3 SMP Thu Sep 17 12:34:56 BST 2015 x86_64
Build Date Sep 18 2015 10:24:28
Configure Command './configure' '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr/lib64/php5.6' '--mandir=/usr/lib64/php5.6/man' '--infodir=/usr/lib64/php5.6/info' '--libdir=/usr/lib64/php5.6/lib' '--with-libdir=lib64' '--without-pear' '--disable-maintainer-zts' '--disable-bcmath' '--with-bz2=/usr' '--disable-calendar' '--enable-ctype' '--without-curl' '--enable-dom' '--without-enchant' '--disable-exif' '--enable-fileinfo' '--enable-filter' '--disable-ftp' '--with-gettext=/usr' '--without-gmp' '--enable-hash' '--without-mhash' '--with-iconv' '--disable-intl' '--enable-ipv6' '--enable-json' '--without-kerberos' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-mbstring' '--with-mcrypt=/usr' '--without-mssql' '--with-onig=/usr' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--disable-pcntl' '--enable-phar' '--disable-pdo' '--enable-opcache' '--with-pgsql=/usr' '--enable-posix' '--without-pspell' '--without-recode' '--enable-simplexml' '--disable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--without-sqlite3' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-fpm-systemd' '--without-tidy' '--enable-tokenizer' '--disable-wddx' '--enable-xml' '--disable-xmlreader' '--disable-xmlwriter' '--without-xmlrpc' '--without-xsl' '--disable-zip' '--with-zlib=/usr' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4=/usr' '--disable-flatfile' '--with-gdbm=/usr' '--disable-inifile' '--without-qdbm' '--without-freetype-dir' '--without-t1lib' '--disable-gd-jis-conv' '--without-jpeg-dir' '--without-png-dir' '--without-xpm-dir' '--without-vpx-dir' '--without-gd' '--without-mysql' '--without-mysqli' '--with-readline=/usr' '--without-libedit' '--without-mm' '--with-pic' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cgi-php5.6' '--with-config-file-scan-dir=/etc/php/cgi-php5.6/ext-active' '--disable-embed' '--disable-cli' '--enable-cgi' '--disable-fpm' '--without-apxs2' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=nehalem '-O2' '-pipe'' 'LDFLAGS=-Wl,-O1 '-Wl,--as-needed'' 'CPPFLAGS=' 'CXXFLAGS=-march=nehalem '-O2' '-pipe''
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/cgi-php5.6
Loaded Configuration File /etc/php/cgi-php5.6/php.ini
Scan this dir for additional .ini files /etc/php/cgi-php5.6/ext-active
Additional .ini files parsed /etc/php/cgi-php5.6/ext-active/opcache.ini
PHP API 20131106
PHP Extension 20131226
Zend Extension 220131226
Zend Extension Build API220131226,NTS
PHP Extension Build API20131226,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk