LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Latest cPanel upcp seems to have broken lsws

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2007, 09:28 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Default Latest cPanel upcp seems to have broken lsws

Hello,

I can't 100% confirm this yet, but the latest upcp which brought us up to the latest easyapache seems to have broken lsws because it changes how the httpd.conf is written.

Before it looked like this:

Code:
<VirtualHost 205.234.192.199>
ServerAlias www.xxx.com
ServerAdmin webmaster@xxx.com
DocumentRoot /home/xxx/public_html
ServerName xxx.com

<IfModule mod_suphp.c>
  suPHP_UserGroup xxx xxx
</IfModule>
<IfModule mod_php4.c>
  php_admin_value open_basedir "/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
  php_admin_value open_basedir "/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>

User xxx
Group xxx
BytesLog /usr/local/apache/domlogs/xxx.com-bytes_log
CustomLog /usr/local/apache/domlogs/xxx.com combined
ScriptAlias /cgi-bin/ /home/xxx/public_html/cgi-bin/
</virtualhost
Now they look like this:

Code:
<VirtualHost 205.234.192.199:80>
    ServerAlias www.xxx.com
    ServerAdmin webmaster@xxx.com
    DocumentRoot /home/xxx/public_html
    ServerName xxx.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup xxx xxx
    </IfModule>
    <IfModule concurrent_php.c>
        php4_admin_value open_basedir "/home/xxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
        php5_admin_value open_basedir "/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
        <IfModule mod_php4.c>
            php_admin_value open_basedir "/home/xxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
        </IfModule>
        <IfModule mod_php5.c>
            php_admin_value open_basedir "/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp"
        </IfModule>
    </IfModule>
    <IfModule !mod_disable_suexec.c>
        User xxx
        Group xxx
    </IfModule>
    BytesLog /usr/local/apache/domlogs/xxx.com-bytes_log
    CustomLog /usr/local/apache/domlogs/xxx.com combined
    ScriptAlias /cgi-bin/ /home/xxx/public_html/cgi-bin/
</VirtualHost>
The IP:PORT on the virtualHost container really seemed to throw LSWS for a loop. I hand edited the httpd.conf to look like the old style, and then things worked fine.

Any thoughts on this?

Thanks,

Frank
Reply With Quote
  #2  
Old 10-13-2007, 06:51 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Which version of LSWS are you using? I think the latest 3.2.3 release should be able to handle it well.
Reply With Quote
  #3  
Old 10-14-2007, 03:57 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Hello,

We've upgraded to 3.2.3 and that does not seem to help. We had to remove the :80 before LSWS would recognize it. This is an urgent problem unless we can modify the way that cPanel is building the httpd.conf

Frank
Reply With Quote
  #4  
Old 10-14-2007, 04:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Since other control panel generate vhost configuration with port number, it should have been support long time ago.

Please send us a sample httpd.conf, we will take a look.
Reply With Quote
  #5  
Old 10-14-2007, 05:04 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
I've sent the httpd.conf to support.

Frank
Reply With Quote
  #6  
Old 10-14-2007, 06:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I knew what is wrong, it is because port 79 is used in your Apache httpd.conf. so <VirtualHost IP:80> does not match with any listener, if you change ":80" to ":79", it will work.

Does cPanel always use port 80 when generate the vhost configuration?
Reply With Quote
  #7  
Old 10-14-2007, 06:47 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Yea, that makes perfect sense.

before the latest upcp (the new easyapache) it wrote them like:

<VirtualHost 205.234.192.199>

now they are

<VirtualHost 205.234.192.199:80>

I already have a ticket into cPanel to see if that is (hopefully) part of a template that can be modified. If not, I think we'll have to edit httpd.conf after every add and that will be a major pain for add-on domains and resellers.

Frank
Reply With Quote
  #8  
Old 10-15-2007, 06:27 AM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
I received a reply from cPanel. The templates (and looks like other useful ones) are located in /usr/local/cpanel/src/templates. Looks pretty simple to either hard code the port to 79 or just remove it all together.

Frank
Reply With Quote
  #9  
Old 10-15-2007, 09:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thanks for the update. this will be helpful to other cPanel users who run Apache behind LiteSpeed.
Reply With Quote
  #10  
Old 10-19-2007, 12:48 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
ok,

Well just as a FYI for other cPanel users this is going to be an issue. Even though you modify the template it still generates the httpd.conf as <virtualHost xx.xx.xx.xx:80>. cPanel has replied that this is working as designed so there is no issue. It's not an issue for cPanel but it's going to be an issue for us LSWS users.

Frank
Reply With Quote
Reply

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


All times are GMT -7. The time now is 01:13 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.