WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Problem with lighttpd and PHP  (Read 2692 times)

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Problem with lighttpd and PHP
« on: March 10, 2010, 07:28:59 AM »
Hi everybody

I have installed lighttpd, and it works excelent with plain HTML.
But I cant make it running PHP5, it says:
Code: [Select]
tc@box:/usr/local/bin$ ./php
./php: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

I have then installed base-dev, which includes libpng.
It also has a libpng-config, but i dont know how to use it.
And also 4 files:
  • libpng.a
  • libpng.la
  • libpng12.a
  • libpng12.la

Maybe the problem is PHP's include directorys??

Im running it on MicroCore 2.9

\\Batnas

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Problem with lighttpd and PHP
« Reply #1 on: March 10, 2010, 07:53:14 AM »
I'm not at a tc machine at the moment to check, but:

1. is /usr/lib/libpng12.so.0 present?
2. have you set PKG_CONFIG_PATH?

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: Problem with lighttpd and PHP
« Reply #2 on: March 10, 2010, 09:25:29 AM »
ummm
no:
Code: [Select]
tc@box:~$ set
G_FILENAME_ENCODING='iso8859-1'
HISTFILE='/home/tc/.ash_history'
HOME='/home/tc'
IFS='
'
LANG='C'
LOGNAME='tc'
OLDPWD='/home/batnas'
OPTIND='1'
PATH='/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
PPID='1431'
PS1='\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
PS2='> '
PS4='+ '
PWD='/home/tc'
SHELL='/bin/sh'
TERM='xterm'
TZ='UTC'
USER='tc'
_='set'

Code: [Select]
tc@box:~$ ls /usr/lib/*png*
/usr/lib/libpng.a     /usr/lib/libpng12.a
/usr/lib/libpng.la    /usr/lib/libpng12.la
tc@box:~$ ls -l /usr/lib/*png*
lrwxrwxrwx    1 root     root           37 Jan 28 23:07 /usr/lib/libpng.a -> /tmp/tcloop/base-dev/usr/lib/libpng.a
lrwxrwxrwx    1 root     root           38 Jan 28 23:07 /usr/lib/libpng.la -> /tmp/tcloop/base-dev/usr/lib/libpng.la
lrwxrwxrwx    1 root     root           39 Jan 28 23:07 /usr/lib/libpng12.a -> /tmp/tcloop/base-dev/usr/lib/libpng12.a
lrwxrwxrwx    1 root     root           40 Jan 28 23:07 /usr/lib/libpng12.la -> /tmp/tcloop/base-dev/usr/lib/libpng12.la

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Problem with lighttpd and PHP
« Reply #3 on: March 10, 2010, 10:02:30 AM »
You probably need Xlibs.gz.
The only barriers that can stop you are the ones you create yourself.

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: Problem with lighttpd and PHP
« Reply #4 on: March 10, 2010, 10:23:08 AM »
.gz and not .tcz??
Then where do i get it?? I have Xlibs_soppurt.tcz in the repo, it is what you mean??

also Im running microcore and do not have Xorg installed.

\\Batnas

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Problem with lighttpd and PHP
« Reply #5 on: March 10, 2010, 12:24:32 PM »
It's where you got the microcore iso.

http://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/2.x/release/microcore/

I don't remember right now whether it should be in tce or optional.
The only barriers that can stop you are the ones you create yourself.

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: Problem with lighttpd and PHP
« Reply #6 on: March 14, 2010, 04:19:30 PM »
That didn't work.
In fact i placed it in my tce dir, and then after next reboot the entire tce dir is wiped out. nothing left, but optional

any other suggestions??

\\Batnas

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Problem with lighttpd and PHP
« Reply #7 on: March 14, 2010, 06:37:51 PM »
@batnas: How do you maintain persistence? I mean, where do you "keep" your extensions (USB pendrive, harddisk, ...)? What boot codes are you using?

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Problem with lighttpd and PHP
« Reply #8 on: March 14, 2010, 11:59:56 PM »
As hinted on IRC, those are initramfs (ie you will need to add it to your bootloader entry)

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: Problem with lighttpd and PHP
« Reply #9 on: March 15, 2010, 03:38:28 AM »
I have configured backup correct. I can't get the bootcodes now. And i keep them on a usb drive.

However, I found out, that lilypond included libpng12.so.0, but now it tells me that it cant get version number.
Ill post more when i come home