લેખ ડિરેક્ટરી
એક ડિજિટલ માર્કેટરે Linux સર્વર પર CWP7 કંટ્રોલ પેનલ અપાચે 2.4.25 ઇન્સ્ટોલ કર્યું , પરંતુ અપાચે સેવા શરૂ થવામાં નિષ્ફળ ગઈ, જેના પરિણામે નીચેની ભૂલ આવી: ▼
httpd.service - Web server Apache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2022-04-13 05:21:29 EST; 4min 53s ago Process: 12087 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE) Apr 13 05:21:29 www.etufo.org systemd[1]: Starting Web server Apache... Apr 13 05:21:29 www.etufo.org apachectl[12087]: AH00526: Syntax error on line 12 of /usr/local/apache/conf/sharedip.conf: Apr 13 05:21:29 www.etufo.org apachectl[12087]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration Apr 13 05:21:29 www.etufo.org systemd[1]: httpd.service: control process exited, code=exited status=1 Apr 13 05:21:29 www.etufo.org systemd[1]: Failed to start Web server Apache. Apr 13 05:21:29 www.etufo.org systemd[1]: Unit httpd.service entered failed state. Apr 13 05:21:29 www.etufo.org systemd[1]: httpd.service failed.
જ્યારે Apache2 ભૂલની જાણ કરે ત્યારે કેવી રીતે અનઇન્સ્ટોલ અને પુનઃસ્થાપિત કરવું?

તેથી, CentOS 7 પર Apache સેવા અનઇન્સ્ટોલ અને દૂર કરવામાં આવી હતી .
નીચે આપેલ CWP અનઇન્સ્ટોલ દૂર કરો અપાચે સેવા આદેશ દાખલ કરો ▼
yum remove cwp-httpd
કાઢી નાખવા અને પુનઃસ્થાપિત કરવા માટે Apache service yum આદેશ
પગલું 1: yum આદેશનો ઉપયોગ કરીને અપાચે સેવા ઇન્સ્ટોલ કરો.
CWP ને અનઇન્સ્ટોલ કર્યા પછી અને અપાચે સેવાને કાઢી નાખ્યા પછી, Apache સેવાને પુનઃસ્થાપિત કરવા માટે yum આદેશનો ઉપયોગ કરો▼
yum install cwp-httpd
પગલું 2: અપાચે સક્રિય કરો, જેના માટે અપાચે સેવા શરૂ કરવાની જરૂર છે.
SSH▼ માં નીચેનો આદેશ દાખલ કરો
systemctl start httpd
પગલું 3: આગળ, સિસ્ટમ બુટ થાય ત્યારે શરૂ થવા માટે અપાચે સેવાને ગોઠવો:
systemctl enable httpd
પગલું 4: અપાચે સેવા સ્થિતિ તપાસો
અપાચે વિશેની માહિતી પ્રદર્શિત કરો અને હાલમાં ચાલી રહેલી અપાચે સેવાની સ્થિતિ જુઓ:
systemctl status httpd
આશા છે કે, ચેન વેઇલિયાંગના બ્લોગ ( https://www.chenweiliang.com/ ) પર શેર કરાયેલ લેખ "ભૂલો આવે ત્યારે Apache2 ને કેવી રીતે અનઇન્સ્ટોલ અને ફરીથી ઇન્સ્ટોલ કરવું? yum કમાન્ડનો ઉપયોગ કરીને Apache સેવાને કાઢી નાખવી અને ફરીથી ઇન્સ્ટોલ કરવી" તમારા માટે મદદરૂપ થશે.
આ લેખની લિંક શેર કરવા માટે નિઃસંકોચ રહો: https://www.chenweiliang.com/cwl-27525.html
