lighttpd not showing graphics/layout. Any idea?

Ask questions about Arch Linux ARM. Please search before making a new topic.

lighttpd not showing graphics/layout. Any idea?

Postby ronson » Fri Nov 16, 2012 6:36 am

Hi there!

I finally managed to get the whole lighttpd,php,sqlite,fast_cgi Thing going on the dockstar.

I wanted to use a Blogging software like "flatpress" or "chyrp" but I ran into some issue.

On both of these Sites (index.php) I do not have any graphics/style and layout. It shows only the Page with the basic text and links but no style/theme/graphics.


Image Image

Does anyone know how to get the styles/graphics and layout working.

Following some Informations which could help to determine the issue:


php-v
$this->bbcode_second_pass_code('', ' php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sqlite.so' - /usr/lib/php/modules/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.8 (cli) (built: Oct 21 2012 05:22:39)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies')


php-cgi --version
$this->bbcode_second_pass_code('', 'PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sqlite.so' - /usr/lib/php/modules/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.8 (cgi-fcgi) (built: Oct 21 2012 05:25:27)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies')

/etc/php/php.ini
I have posted it on pastebin:
http://pastebin.com/gezq8AUe


/etc/lighttpd/lighttpd.conf
$this->bbcode_second_pass_code('', '
# This is a minimal example config
# See /usr/share/doc/lighttpd
# and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions
include "/etc/lighttpd/conf.d/fastcgi.conf"

server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "disable"
index-file.names = ( "index.html","dispatch.fcgi","index.php" )
#mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png", "" => "application/octet-stream" )
#server.modules = (
# "mod_access",
# "mod_fastcgi",
# "mod_cgi",
# "mod_accesslog" )
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".css" => "text/css",
"" => "application/octet-stream"
)
')

/etc/lighttpd/conf.d/fastcgi.conf
$this->bbcode_second_pass_code('', '
#######################################################################
##
## FastCGI Module
## ---------------
##
## http://www.lighttpd.net/documentation/fastcgi.html
##
#Auch auskommentiert weil duplicate Variable sowohl hier als auch in der fastcgi.conf
server.modules += ( "mod_fastcgi" )

#mod_access",
# "mod_fastcgi",
# "mod_cgi",
# "mod_accesslog" )


#server.indexfiles += ( "dispatch.fcgi" ) #this is deprecated
#Den habe ich hier auskommentiert da die gleiche Variable in der lighttpd.conf vorhanden ist
#index-file.names += ( "dispatch.fcgi","index.php" ) #dispatch.fcgi if rails specified

#Mein ersterVersuch mit der Config
#server.error-handler-404 = "/dispatch.fcgi" #too
#fastcgi.server = (
# ".fcgi" => (
# "localhost" => (
# "socket" => "/run/lighttpd/rails-fastcgi.sock",
# "bin-path" => "/path/to/rails/application/public/dispatch.fcgi"
# )
# )
#)
#Der zweite Versuch nach https://wiki.archlinux.org/index.php/Lighttpd
fastcgi.server = (
".php" => (
"localhost" => (
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/run/lighttpd/php-fastcgi.sock",
"max-procs" => 4, # default value
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "1", # default value
),
"broken-scriptfilename" => "enable"
))
)

##
## PHP Example
## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
##
## The number of php processes you will get can be easily calculated:
##
## num-procs = max-procs * ( 1 + PHP_FCGI_CHILDREN )
##
## for the php-num-procs example it means you will get 17*5 = 85 php
## processes. you always should need this high number for your very
## busy sites. And if you have a lot of RAM. :)
##
#fastcgi.server = ( ".php" =>
# ( "php-local" =>
# (
# "socket" => socket_dir + "/php-fastcgi-1.socket",
# "bin-path" => server_root + "/cgi-bin/php5",
# "max-procs" => 1,
# "broken-scriptfilename" => "enable",
# )
# ),
# ( "php-tcp" =>
# (
# "host" => "127.0.0.1",
# "port" => 9999,
# "check-local" => "disable",
# "broken-scriptfilename" => "enable",
# )
# ),
#
# ( "php-num-procs" =>
# (
# "socket" => socket_dir + "/php-fastcgi-2.socket",
# "bin-path" => server_root + "/cgi-bin/php5",
# "bin-environment" => (
# "PHP_FCGI_CHILDREN" => "16",
# "PHP_FCGI_MAX_REQUESTS" => "10000",
# ),
# "max-procs" => 5,
# "broken-scriptfilename" => "enable",
# )
# ),
# )
######### And some other commented code
')


I would really be happy if someone could help me in this way.
Thanks and best regards
Ron
ronson
 
Posts: 11
Joined: Mon Apr 09, 2012 2:21 pm

Re: lighttpd not showing graphics/layout. Any idea?

Postby karog » Fri Nov 16, 2012 3:42 pm

Did you install php-sqlite?

$this->bbcode_second_pass_code('', '
pacman -Sy php-sqlite')
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: lighttpd not showing graphics/layout. Any idea?

Postby ronson » Fri Nov 16, 2012 6:56 pm

Yes it is installed already

php-sqlite-5.4.8-1

I think you are pointing to the "error" message regarding php and sqlite.

I uncommented the extension "extension=sqlite3.so" and there is no issue.
And I added manually in the php.ini the extension "extension=sqlite.so" which then gives me this error but I am able to use sqlite without it.
ronson
 
Posts: 11
Joined: Mon Apr 09, 2012 2:21 pm

Re: lighttpd not showing graphics/layout. Any idea?

Postby WarheadsSE » Fri Nov 16, 2012 7:38 pm

Check your logs & use the developer console on your browser. Look for errors in getting .js or .css files.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: lighttpd not showing graphics/layout. Any idea?

Postby ronson » Sat Nov 17, 2012 11:16 am

So..

What I forgot to mention is that I tried it with Google Chrome.
Google Chrome is giving me these "issues".
I know that Google Chrome is not parsing rss but that such essential things like CSS GoogleChrome is not showing like it should



I tried it yesterday with Firefox and with Chromium and It worked how it should. But only with google Chrome its showing these issues!

Thank you for your hint which drove me to try a different browser than google chrome...
ronson
 
Posts: 11
Joined: Mon Apr 09, 2012 2:21 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests