Latest cPanel upcp seems to have broken lsws

ffeingol

Well-Known Member
#1
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
 

ffeingol

Well-Known Member
#3
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
 

mistwang

LiteSpeed Staff
#4
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.
 

mistwang

LiteSpeed Staff
#6
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?
 

ffeingol

Well-Known Member
#7
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
 

ffeingol

Well-Known Member
#8
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
 

ffeingol

Well-Known Member
#10
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
 

ffeingol

Well-Known Member
#14
cPanel has replied back to my ticket. They say in a future release you'll be able to specify an alternate port. But for now you can't modify the template and remove the port or change the port. It's simply ignored.

Going to have to keep an eye on all domains and add-on's added and manually change httpd.conf.

Frank
 

ffeingol

Well-Known Member
#15
Just a FYI (have not had time to test yet). The latest version of cPanel let's you specify the http and https ports under "tweak settings". I now have them set to 79 and 442 so the httpd.conf "should" be built properly.

Frank
 
Top