Control Web Panel

WebPanel => Updates => Topic started by: Martins-phpbb on July 27, 2023, 03:49:49 PM

Title: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 27, 2023, 03:49:49 PM
Cwp  change log has jumped 3 versions but in our admin panels it fails to update i even ran the update code in ssh but fails.

(https://www.martins-play-ground.com/ext/dmzx/imageupload/img-files/2/21e495d/006ec3c/045a52bc181937175993939d2084428b.png)

(https://www.martins-play-ground.com/ext/dmzx/imageupload/img-files/2/aa095c7/1402625/75dc2e36686be211fe845936b9bf9f88.png)
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 27, 2023, 07:43:49 PM
Current version is 0.9.8.1160, and there is an update pending today.

Check your firewall, more than likely you are blocking a country the update is coming from.
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 27, 2023, 08:11:32 PM
Firewall is all good  ;) I been seeing this update for well over 24 hours as of this posting time.
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 27, 2023, 08:23:38 PM
You'll see the update run when CWP runs it cronjob tonight/early tomorrow morning.
Title: Re: CWP fails update jumped 3 versions
Post by: overseer on July 27, 2023, 10:10:24 PM
It's been failing to apply for me, still showing as available (with/without CSF enabled). I'll see if the update applies via cron overnight.
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 27, 2023, 10:22:30 PM
I just noticed the update notification today.
I'll be keeping on eye on it now tonight.
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 28, 2023, 12:48:58 AM
Dam it jumped another version  CWP7: 0.9.8.1164

Apache version: Apache/2.4.57 now installs.
Title: Re: CWP fails update jumped 3 versions
Post by: overseer on July 28, 2023, 12:54:49 AM
Are you installing beta versions, or stable releases (2 weeks tested)? I'm on the more conservative track.
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 28, 2023, 01:04:43 AM
Hmm.
According to CWP's changelog they did jump from 0.9.8.1160 to 0.9.8.1164 with today's release date of 2023-07-27.

https://control-webpanel.com/changelog
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 28, 2023, 02:37:22 AM
Are you installing beta versions, or stable releases (2 weeks tested)? I'm on the more conservative track.

Never use beta the stable as of late dont seem so stable as it used to be so no chance of using beta.
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 28, 2023, 08:49:24 AM
Yup.
CWP went to 0.9.8.1164 on the Release channel last night.

Has the current versions of PHP in the selectors.
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 28, 2023, 06:34:09 PM
Looks like they killed mod_security (url_rewrite) also.
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 28, 2023, 07:09:00 PM
Looks like they killed mod_security (url_rewrite) also.

Weird. None of our servers mod_secuirty configs changed.
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 28, 2023, 07:32:17 PM
Yeah they killed url_rewrite for phpbb boards.

(https://www.martins-play-ground.com/ext/dmzx/imageupload/img-files/2/42b3485/c21db4f/5353e27546f8e5ca2d7b3866193ea320.png)
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 28, 2023, 07:49:12 PM
That wasn't CWP.
mod_security has nothing to do with that.
And the only way modules are Enabled/Disabled is if you rebuild Apache or change them manually in httpd.conf.

Which again isn't automatically done by CWP.

This looks more like a change when your phpbb updated, since that's the screen you are showing.

If you rebuilt Apache, you'll just have to go into the forementioned httpd.conf and remove the comment tag.
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 28, 2023, 07:57:13 PM
mod_rewrite module is no longer installed in latest cwp (that i can find) and yes the image i showed is from phpbb and until cwp jumped too this latest version mod_rewrite worked fine.
Title: Re: CWP fails update jumped 3 versions
Post by: Starburst on July 28, 2023, 08:21:36 PM
Again, CWP doesn't add or remove modules automatically. And this latest update just added some reports and the latest PHP versions to build.
UNLESS you rebuild Apache, then everything goes back to defaults.

You have to make these changes manually via the httpd.conf file.

But looking at our servers the mod_rewrite is active by default.

You can check the Enabled/Disabled modules by:

WebServer Settings -> WebServer Conf Editor -> (/usr/local/apache/conf) tab -> Click Blue Edit button to the right of httpd.conf

Then Ctrl-F to search for 'mod_rewrite'

You will see the line:
LoadModule rewrite_module modules/mod_rewrite.so
(https://starburstservices.com/images/mod_rewrite.jpg)

If yours, for some reason starts with a #. Delete the comment marker (aka #)
Save changes, and restart Apache.
Title: Re: CWP fails update jumped 3 versions
Post by: overseer on July 28, 2023, 10:54:07 PM
mod_rewrite module is no longer installed in latest cwp
That would be putting a (metaphorical) gun to your head and pulling the trigger. Or amputating a major limb (done using that arm now). mod_rewrite is a default, essential apache module, so they would not fail to include it.
Code: [Select]
[root@srv# locate mod_rewrite
/usr/local/apache/include/mod_rewrite.h
/usr/local/apache/manual/images/mod_rewrite_fig1.gif
/usr/local/apache/manual/images/mod_rewrite_fig1.png
/usr/local/apache/manual/images/mod_rewrite_fig2.gif
/usr/local/apache/manual/images/mod_rewrite_fig2.png
/usr/local/apache/manual/mod/mod_rewrite.html
/usr/local/apache/manual/mod/mod_rewrite.html.en
/usr/local/apache/manual/mod/mod_rewrite.html.fr.utf8
/usr/local/apache/modules/mod_rewrite.so
Title: Re: CWP fails update jumped 3 versions
Post by: Martins-phpbb on July 28, 2023, 11:39:43 PM
Issue solved it took many hours but it turned out to be a rogue bit of code in an htaccess file thanks for the hints tho.

Cwp in general has ran fine the last 4 years for me i'v managed so solve many issues without the need to post but this one got me at a time my head is else where. (loss of family members)