Posted June 2, 20231 yr comment_26 In this tutorial It will be about updating Apache version to latest possible version in CWP. In CWP, Apache is the main and default web-server by default it will install stable old version of Apache, you can always update it to latest version and stay up to date with the below script, it will download the latest possible version and do the update job. The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. You need to follow this simple commands to update Apache in CWP : cd /usr/local/src rm -rf /usr/local/src/apache* wget --no-cache https://www.alphagnu.com/upload/apache-rebuild.sh yum install uuid uuid-devel libuuid-devel pcre-devel -y chmod 755 apache-rebuild.sh sh apache-rebuild.sh Current version downloaded by this script : 2.4.62 After installation if apache failed to start with below error : Quote (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 rebuild the webserver config/vhosts i.e from admin >> webservers settings >> select webservers >> click button save and rebuild configuration
November 6, 20231 yr Author comment_252 8 hours ago, Starburst said: FYI 2.4.58 was released on 2023-10-19 updated the script, thanks for the info
November 20, 20231 yr comment_284 Having a weird problem after this latest rebuild. No new sites or domains added are working. Under Admin -> WebServer Settings -> Apache Re-Build, it's not showing 2.4.58, only the older 2.4.57 Rebuilt to the older version, and then also rebuilt in vhosts under Admin -> WebServer Settings -> WebServers Main Conf Rebuilt again to 2.4.58, still no joy. Any suggestions? Edited November 20, 20231 yr by Starburst
November 20, 20231 yr Author comment_285 2 hours ago, Starburst said: Having a weird problem after this latest rebuild. No new sites or domains added are working. Under Admin -> WebServer Settings -> Apache Re-Build, it's not showing 2.4.58, only the older 2.4.57 Rebuilt to the older version, and then also rebuilt in vhosts under Admin -> WebServer Settings -> WebServers Main Conf Rebuilt again to 2.4.58, still no joy. Any suggestions? hi can you check the vhost is created or not after you rebuilt the webserver config ? as the latest apache version doesn't interfere with it.
November 20, 20231 yr comment_286 vhost is created correctly in /usr/local/apache/conf.d/vhosts/ with the right IP. Tried deleting & recreating, still isn't seen.
November 21, 20231 yr Author comment_287 you meant site is showing default page ? or there is any other error when you open the sites ? screenshots will be helpful
November 21, 20231 yr comment_288 It must have been a ghost. No error messages, other than Let's Encrypt saying the domain wasn't pointed to the IP or was .htaccess restricted, would just load to the first site in the user list using the shared IP. Did an images restore, and updated Apache again, and all is working. Very weird. Never seen a problem like that in 5 years of running CWP.
April 6Apr 6 comment_905 On 6/2/2023 at 5:46 PM, Sandeep B. said: In this tutorial It will be about updating Apache version to latest possible version in CWP. In CWP, Apache is the main and default web-server by default it will install stable old version of Apache, you can always update it to latest version and stay up to date with the below script, it will download the latest possible version and do the update job. The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. You need to follow this simple commands to update Apache in CWP : cd /usr/local/src rm -rf /usr/local/src/apache* wget --no-cache https://www.alphagnu.com/upload/apache-rebuild.sh yum install uuid uuid-devel libuuid-devel pcre-devel -y chmod 755 apache-rebuild.sh sh apache-rebuild.sh Current version downloaded by this script : 2.4.58 After installation if apache failed to start with below error : rebuild the webserver config/vhosts i.e from admin >> webservers settings >> select webservers >> click button save and rebuild configuration Can I change the version to 2.4.59 in the script and use it as is ?
April 7Apr 7 comment_910 I tried this with latest version 2.4.59 and it worked flawlessly with no issues till now on 6 cwp servers. Keep up the good work!.
August 9Aug 9 comment_1069 Before i had apache 2.4.57 installed and no issues. Now i have apache 2.4.62 installed and i noticed my web server works slightly different. When i create a new domain on apache 2.4.57 it creates the public_html and the default Centos test html page there. Then when for example i install joomla php based, and i navigate to the domain, it automatic picks up the Joomla install. With apache 2.4.62 installed , it creates the public_html and the default Centos test html page there,but when i install Joomla php based and i navigate to the domain it keeps showing me the default Centos html test page, no matter how many time i clear my cache or even try to approach it from a machine that never been on that domain before. As soon as i delete the default cwp html test page, it picks up the Joomla install page. How and where do i need to change the behaviour of apache so that it acts same as 2.4.57 ? Regards, Mike
August 9Aug 9 Author comment_1070 the config file is the same with our installer it would help if you tried rebuilding vhost from the webserver config and test
August 9Aug 9 comment_1071 Well, i have compared some conf files with an install on a VM and with my current set up. I opened the /usr /local /apache /conf /httpd.conf on both machines... and it turns out in the machine i have this problem with... the index.php was on another location in the order then on the VM where i still have the old apache had installed. This is de code / order on the 2.4.57 conf file and as u can see index.php is the first one in the list. <IfModule dir_module> DirectoryIndex index.php index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html </IfModule> this here is the order of appearing on the apache 2.4.62 conf file <IfModule dir_module> DirectoryIndex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php index.php4 index.php3 index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html </IfModule> As you can see the index.php is on place nr 15 . I did put the index.php as first in the list, and now it works again without me have to delete the index.html first. i also have noticed, that with apache 2.4.62 active, in the user environment. when i create a new database including a new user. it does create the new database, but not the new user.. even i want to create the new user separately. it still does not create a new user.
August 9Aug 9 comment_1072 i id rebuilt it all after these installs. then still have that effect. i am still on apache 2.4.62 only... no other web servers active Edited August 9Aug 9 by Dutch_Mike
August 9Aug 9 comment_1073 i can not create a database and a new user the same time in the User environment panel, but when i go to the root admin panel and then to "mysql manager" and i create a new user there, then it is working.
August 9Aug 9 comment_1074 even i could create the user for the database, when i try to install joomla it says Could not connect to the database. Connector returned error message: Access denied for user 'username_jml'@'localhost' (using password: YES) when i try to change the password in the user environment panel it is NOT accepted and gives an error. when i change the password again in the root admin panel with mysql manager it does accept the password , but the installation keeps giving the same error
August 9Aug 9 comment_1075 now i deleted the user that i created in the root admin panel mysql manager, and i used the root admin panel phpmyadmin. I created the same username with the same password... and now i am able to have joomla installed without a problem. so there goes something wrong for sure. Sandeep, if you want to dig in my server and create users and try things.. you are most welcome and find the the culprit.
August 9Aug 9 Author comment_1076 you can check the build script there is nothing there which you're mention that our script did it
August 9Aug 9 comment_1078 well i have no clue where to check or to look at what, i done everything exact as you described it in your articles, and it did not gave me errors during the install for the kernel upgrade for the maria upgrade and the apache upgrade, and this happens. so probably apache *.62 doesn't work the same as *57 or it must be a combination of the kernel and apache. its the same as this.. remember Sandeep you been in my server for the firewall thing to block, you also repaired my filebrowser, because it had a corrupted file. That file browser has worked for me only 1 time. like 3 or 4 years ago. since then i installed probably around 30 vm and a baremetal server again and again, if not more, and every install does the same, filebrowser is never working propperly. it doesnt move files to folders that are full already. it doesn delete the files after the move, it doesnt copy the first time, when i click on breadcrums it doesnt want to move there, need to click 2 3 times as it should. i made a post on the cwp forum, and i only got a few replies like mine is working, and we can not replicate it, but the result is.. i still have a file browser that is not working as it should... and its still not fixed. even not in this new fresh installation of 5 days old. filebrowser still not work propperly I make mistakes.. but not like that 30 40 times
August 31Aug 31 comment_1096 Problem: package xxx from epel requires httpd, but none of the providers can be installed - conflicting requests of course i have installed apache. i have Apache version: Apache/2.4.57 installed with this script. How can i fix this error?
September 5Sep 5 Author comment_1099 try this command then update Apache yum remove cwp-httpd httpd* -y && yum install cwp-httpd -y
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now