LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Archive » LxAdmin » Bug Report » Apache will not start with suphp, fresh install
Apache will not start with suphp, fresh install [message #8418] Sat, 14 July 2007 04:56 Go to next message
computrguru is currently offline computrguru  United States
Messages: 41
Registered: December 2006
Member
Hello!

I can not get Apache to start when i enable suphp. If I switch to mod_php apache will start.

I am having this issue on a fresh install of Lxadmin on CentOS 4.

Any ideas?

Jody (computrguru)
Re: Apache will not start with suphp, fresh install [message #8429 is a reply to message #8418] Sat, 14 July 2007 06:39 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Can you just see if the /etc/httpd/conf.d/suphp.nonconf file exists?

also /etc/suphp.conf?

Thanks.


Re: Apache will not start with suphp, fresh install [message #8450 is a reply to message #8418] Sat, 14 July 2007 11:44 Go to previous messageGo to next message
computrguru is currently offline computrguru  United States
Messages: 41
Registered: December 2006
Member
Both files are missing.

I am having this problem with both a Cent / SSE and HIB install.

Jody (computrguru)
Re: Apache will not start with suphp, fresh install [message #8451 is a reply to message #8450] Sat, 14 July 2007 11:46 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Please update the system once forcibly.

 

 cd /usr/local/lxlabs/lxadmin/httpdocs/
 lphp.exe ../bin/update.php

 


Thanks.

Re: Apache will not start with suphp, fresh install [message #8459 is a reply to message #8418] Sat, 14 July 2007 12:34 Go to previous messageGo to next message
computrguru is currently offline computrguru  United States
Messages: 41
Registered: December 2006
Member
I did the update and now I have a /etc/httpd/conf.d/suphp.nonconf file. /etc/suphp.conf is still missing.

Jody (computrguru)


Jody (computrguru)
Server- Solutionz
Quality, Affordable VPS Servers
Hosting-Solutionz
Quality, Affordable Hosting
Re: Apache will not start with suphp, fresh install [message #8461 is a reply to message #8459] Sat, 14 July 2007 12:42 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
>
Quote:


> I did the update and now I have a /etc/httpd/conf.d/suphp.nonconf file. /etc/suphp.conf is still missing.
>
> Jody (computrguru)



In that case, you may have to manually copy that. I have fixed the suPHP installation. It was supposed to be addon, but it seems more people are using it rather than mod_php.

 

 cp /usr/local/lxlabs/lxadmin/file/etc_suphp.conf /etc/suphp.conf

 


Thanks.


Re: Apache will not start with suphp, fresh install [message #8609 is a reply to message #8418] Tue, 17 July 2007 01:13 Go to previous messageGo to next message
computrguru is currently offline computrguru  United States
Messages: 41
Registered: December 2006
Member
Well I have given up trying to get this to work for now. I have tried on a CentOS / SSE install and HIB install. I can get both files to show but can't get Apache to start with suphp.

I have also found that suphp will break the switch back to lighttp from Apache.

I have also tried forcing an update in both with no success. I have noticed that the /etc/httpd/conf.d/suphp.nonconf file is emty. Should it be?

I am willing to experiment with this on a non-production server as needed to help trouble shoot the suphp install.


Jody (computrguru)
Server- Solutionz
Quality, Affordable VPS Servers
Hosting-Solutionz
Quality, Affordable Hosting
Re: Apache will not start with suphp, fresh install [message #8611 is a reply to message #8609] Tue, 17 July 2007 01:18 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
SuPHP is being used by most of the people who are using apache with lxadmin and it should work. Please run the below, and it will guaranteed work.

 

 cp /usr/local/lxlabs/lxadmin/file/suphp.conf /etc/httpd/conf.d/suphp.conf

 


And then restart httpd. It seems the file wasn't properly copied. I will fix this properly so that all the initialiations are properly done when you switch to suPHP through the GUI.

Thanks.

Re: Apache will not start with suphp, fresh install [message #9078 is a reply to message #8418] Sun, 22 July 2007 21:02 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Please update lxadmin to 8262 version. then switch to mod_php and then back, and suphp should work.

Thanks.


Re: Apache will not start with suphp, fresh install [message #9183 is a reply to message #8418] Mon, 23 July 2007 21:40 Go to previous messageGo to next message
computrguru is currently offline computrguru  United States
Messages: 41
Registered: December 2006
Member
I tried upgrading as suggested. I was able to get Apache to run but received 500 server errors on all my php.

I then reloaded HIB and all woks as it should. I have restarted my VM and Apache. No 500 errors!



Jody (computrguru)
Server- Solutionz
Quality, Affordable VPS Servers
Hosting-Solutionz
Quality, Affordable Hosting
Re: Apache will not start with suphp, fresh install [message #65029 is a reply to message #8418] Sun, 17 May 2009 07:49 Go to previous messageGo to next message
tuxdroid is currently offline tuxdroid  Germany
Messages: 7
Registered: May 2009
Member
I have the same Problem using Kloxo 6.0.1132

When I enable suPHP, Apache shuts down.
I tried to start it manually but it says that the suPHP-module cannot be found.


I don`t know if it is important for you, but the command yum update does not work. It says that there are errors in different files. Before the HIB-image was updated via HyperVM, it was possible to use yum update.
Re: Apache will not start with suphp, fresh install [message #65030 is a reply to message #65029] Sun, 17 May 2009 07:56 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Try:

 
 yum -y install mod_suphp
 



On Sun, May 17, 2009 at 11:50:03AM -0000, Alexander wrote:
>
>
> I have the same Problem using Kloxo 6.0.1132
>
> When I enable suPHP, Apache shuts down.
> I tried to start it manually but it says that the suPHP-module cannot be found.
>
>
> I don`t know if it is important for you, but the command yum update does not work. It says that there are errors in different files. Before the HIB-image was updated via HyperVM, it was possible to use yum update.
>


Re: Apache will not start with suphp, fresh install [message #65031 is a reply to message #8418] Sun, 17 May 2009 08:04 Go to previous messageGo to next message
tuxdroid is currently offline tuxdroid  Germany
Messages: 7
Registered: May 2009
Member
Using yum I geht the following error:

yum -y install mod_suphp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 339, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack
    self.doSetup()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
    self._poll_mirrors()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
    pollThread.start()
  File "/usr/lib/python2.4/threading.py", line 416, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread


As I said this happens since HIB was updated.
Re: Apache will not start with suphp, fresh install [message #65032 is a reply to message #65031] Sun, 17 May 2009 08:08 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
run:

 
 yum clean all
 



On Sun, May 17, 2009 at 12:05:05PM -0000, Alexander wrote:
>
>
> Using yum I geht the following error:
>
> yum -y install mod_suphp
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
> Traceback (most recent call last):
> File "/usr/bin/yum", line 29, in ?


Re: Apache will not start with suphp, fresh install [message #65033 is a reply to message #8418] Sun, 17 May 2009 08:18 Go to previous messageGo to next message
tuxdroid is currently offline tuxdroid  Germany
Messages: 7
Registered: May 2009
Member
Same, tried that earlier:

yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
yum -y install mod_suphp
Loaded plugins: fastestmirror
Determining fastest mirrors
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 339, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack
    self.doSetup()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
    self._poll_mirrors()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
    pollThread.start()
  File "/usr/lib/python2.4/threading.py", line 416, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread


Shall I try to redownload the HIB-os-template?

[Updated on: Sun, 17 May 2009 08:19]

Report message to a moderator

Re: Apache will not start with suphp, fresh install [message #65037 is a reply to message #65033] Sun, 17 May 2009 08:24 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
That's because you don't have enough memory. Most likely that's also why the switch to suphp failed.



On Sun, May 17, 2009 at 12:18:57PM -0000, Alexander wrote:
>
>
> Same, tried that earlier:
>
> yum clean all
> Loaded plugins: fastestmirror
> Cleaning up Everything


Re: Apache will not start with suphp, fresh install [message #65039 is a reply to message #8418] Sun, 17 May 2009 08:29 Go to previous message
tuxdroid is currently offline tuxdroid  Germany
Messages: 7
Registered: May 2009
Member
Woot, woot. You`re right.

I should have thought about that earlier.

Everything works now.
Previous Topic:Migrating mail account
Next Topic:Webmail - horde - link pointer error/broken link
Goto Forum:
  


Current Time: Fri May 24 20:37:00 EDT 2013

Total time taken to generate the page: 0.01293 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software