#1  
Old 2nd September 2009, 20:31
White White is offline
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default lighttp failed to install

Hi Falko,

ive done the perfect lenny setup and proftp and virtual users with mysql and everything is fine.

Now i wanted to install eAccelerator which requires lighttpd and i was following Install PHP 5.3.0/Lighttpd On Debian (Lenny) With Imap, MySQL, Sqlite3 And ImageMagick Support

the first statement is aptitude install lighttpd thats when i hit my first error

the output from the shell was this

Quote:
server1:~# /etc/init.d/lighttpd restart
Stopping web server: lighttpd.
Starting web server: lighttpd/usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking
2009-09-02 18:00:33: (network.c.300) can't bind to port: 80 Address already in use
failed!
server1:~#
so i tried stopping apache2 and got the following

Quote:
server1:~# /etc/init.d/apache2 stop
Stopping web server: apache2 ... waiting ..
server1:~# /etc/init.d/lighttpd restart
Stopping web server: lighttpd.
Starting web server: lighttpd/usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking
.
server1:~#
i dont have the knowledge base yet to know what this means can you help please

Apache2 wouldnt restart so i had to remove lighttpd
see below

Quote:
server1:~# /etc/init.d/apache2 restart
Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
failed!
server1:~# apt-get remove lighttpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
lighttpd
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 815kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 113513 files and directories currently installed.)
Removing lighttpd ...
Stopping web server: lighttpd.
Processing triggers for man-db ...
server1:~# /etc/init.d/apache2 restart
Restarting web server: apache2.
server1:~#
All of my sites have now died and return a blank page

netstat -lnp | grep :::80 returns
tcp6 0 0 :::80 :::* LISTEN 4912/apache2
but its not firing up my sites, default and defaul-ssl are fine nothing has ben changed in there

Last edited by White; 3rd September 2009 at 00:11. Reason: additional info
Reply With Quote
Sponsored Links
  #2  
Old 3rd September 2009, 02:17
White White is offline
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ive totally fluffed things up, tried to uninstall apache2 and reinstall it, now dpkg is returning errors.

1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up libapache2-mod-fcgid (1:2.2-1) ...
Could not create /etc/apache2/mods-enabled/fcgid.conf: No such file or directory
dpkg: error processing libapache2-mod-fcgid (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
libapache2-mod-fcgid
E: Sub-process /usr/bin/dpkg returned an error code (1)
server1:~#


Apache2 isnt installed properly shed loads of directories are missing, can you tell me how to uninstall apache2 and php5 all the modules for both as loaded from the perfect setup then i can re-install them from the setup again
Reply With Quote
  #3  
Old 3rd September 2009, 14:15
White White is offline
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I put back all my old apache2 dir's and purged lighttpd, i can access www.mydomain.com as this seems to be working and is located in /var/www/mydomain/index.html

my sites enabled points to doc route /var/www/mydomain

however all my other sites are located in /etc/home and are php files

i placed a index.html into each site and they return in the browser, thus i can deduce that there is a php issue as it isnt returning any php site
Reply With Quote
  #4  
Old 3rd September 2009, 17:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by White View Post
Now i wanted to install eAccelerator which requires lighttpd
That's not true, you can use it with Apache as well: http://www.howtoforge.com/eaccelerator_php5_debian_etch
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th September 2009, 23:38
White White is offline
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Problem Solved !!

Thanks Falko, i did a rebuild on my server today from the ground up.

everything was fine until i installed eAccelerator as per the how to then the blank pages came back and various errors to do with segmentation again. But this time i noticed that one error had a conflict between eAccelerator and Xcache so i moved Xcache from the conf.d folder, restarted apache2, this did nothing.

I had a look at another php.ini file in conf.d and noticed that the
Quote:
extension="eaccelerator.so"
in the eaccelerator.ini file had "" around the .so but all my other .ini files didnt so i removed them,
Quote:
extension=eaccelerator.so
restarted apache2 hey presto my php sites came back. i put Xcache back in conf.d as a test restarted apache2 and again they returned blank pages so i undid that operation now everything is fine.

Hoping this may help someone else.
Reply With Quote
Reply

Bookmarks

Tags
eaccelerator, lighttp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is my postfix is hacked? bzzik Server Operation 21 15th July 2009 15:13
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 15:42
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40


All times are GMT +2. The time now is 13:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.