arrow_upward

Pages (2):
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apache2 Restart
#1
Hello Friends, I am having trouble in restarting the apache2.When i use cmd to restart appache2 it shows:

 "Job for apache2.service failed because the control process exited with error code.

See "systemctl  status apache2.service" and "journalctl  -xe" for details."


I searched google and found a command and received output.


[color=red]Codes Removed[/red]

Thanks to Post4VPS and Hostlease for their great services.  
#2
These lines are mostly important:
Oct 03 07:30:31 123.123.123.123 apachectl[8561]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 20 of /etc/apache2/sites-enabled/smf-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory

You may want to edit out your IP from the logs.


Looks like there is either something that is misconfigured or actually pointing to something that is missing.

Unfortunately this is as far as I can help. Not a Apache2 user. Sorry.
[Image: zHHqO5Q.png]
#3
Iam using this cmd to restart my Apache, try it
sudo service apache2 restart
If you failed then backup your files and reset your vps
#4
@youssefbasha

Without the intent to offend you or irritate you but you're an absolutely horrible system administrator if your solution for every problem is to take a backup and reset the whole server to start from zero.


@Rehan

I've done a little more research as this is the only thing I could do without a server at hand and no real knowledge with Apache and Let's Encrypt. I found some interesting topics that might help you to solve the problem.

First: It looks like you're using Let's Encrypt for your SSL with Apache 2 module. At least this is what your vHost website configuration from the error log hints. And in one of these configurations points to another configuration that points to yet another file. And this exact file is in the Let's Encrypt installation directory but on your system it seems to be missing.

I'm not sure how you installed your Let's Encrypt SSL but I guess the guide you used is absolutely outdated and not working like this example: https://community.letsencrypt.org/t/opti...st/36042/3

So what I would suggest you is to use the official CertBot with its official installation documentation and SSL certificate generation guide for Apache 2:
- Debian 8 + Apache: https://certbot.eff.org/lets-encrypt/deb...sie-apache
- Debian 9 + Apache: https://certbot.eff.org/lets-encrypt/deb...tch-apache
- Ubuntu 16.04 + Apache: https://certbot.eff.org/lets-encrypt/ubu...ial-apache
- Ubuntu 18.04 + Apache: https://certbot.eff.org/lets-encrypt/ubu...nic-apache
- CentOS 6 + Apache: https://certbot.eff.org/lets-encrypt/centos6-apache
- CentOS 7 + Apache: https://certbot.eff.org/lets-encrypt/centosrhel7-apache

Full documentation with more details: https://certbot.eff.org/docs/
[Image: zHHqO5Q.png]
#5
Thank you guys.I forgot that two days ago i removed certbot.I have cleared the configs now and working well.
@Hidden Refuge for the useful links.There was a problem in installing in certbot last time.I hope i will be able to manage this now.
Also i am facing another problem whenever i upload a wordpress theme it shows " the link you followed has expired. ".

Thanks to Post4VPS and Hostlease for their great services.  
#6
it smell like configuration error . checks for syntax error is most of the time is a typo . i always get this error when i didnt type my config correctly

try checking your config and restart again hopefullt it does work
Terminal
humanpuff69@FPAX:~$ Thanks To Shadow Hosting And Post4VPS for VPS 5
#7
(10-04-2018, 04:54 AM)Hidden Refuge Wrote: @youssefbasha

Without the intent to offend you or irritate you but you're an absolutely horrible system administrator if your solution for every problem is to take a backup and reset the whole server to start from zero.

Umm, u didn't get my point.. 
By saying if you failed i meant failed after searching at google and etc
#8
@Rehan edit your php.ini file and change
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300


Thank you  Sweet



#9
(10-06-2018, 01:35 AM)Littlemaster Wrote: @Rehan edit your php.ini file and change
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

Thank you brother for information.Its working fine for me now but you should explain which directory.I searched the file name and found it.
Here is the directory /etc/php/7.1/apache2/php.ini.

Thanks to Post4VPS and Hostlease for their great services.  
#10
php.ini file may be in different directory for different configurations, well, you can search and find the path.


Thank you  Sweet



Pages (2):


person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting