Apache restart option not available in cPanel

Cypherjac

Member
Dec 12, 2019
5
2
3
public_html
cPanel Access Level
Website Owner
I would like to restart my apache server since I recently edited my .ini files, but I don't see any option that could allow me to do that.
I tried to access via ssh through port 22 but I receive an error "socket not established", I would like help on how to restart the apache server, thanks in advance.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
I would like to restart my apache server since I recently edited my .ini files, but I don't see any option that could allow me to do that.
I tried to access via ssh through port 22 but I receive an error "socket not established", I would like help on how to restart the apache server, thanks in advance.
You need root access to be able to restart Apache.
You don't need to restart Apache after editing .ini files.
 
  • Like
Reactions: cPanelLauren

Cypherjac

Member
Dec 12, 2019
5
2
3
public_html
cPanel Access Level
Website Owner
You need root access to be able to restart Apache.
You don't need to restart Apache after editing .ini files.
Thanks for that...Now a follow up question, I want to use "include()" in my php but the server did not support it, so I edited the php.ini file and changed the value of "allow_url_include" to "On", but It is still not including the files, which in this case led me to think that I needed to restart the server for the changes to take effect...but in that case, could you know why the php "include()" function is still not working?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,254
313
Houston
Thanks for that...Now a follow up question, I want to use "include()" in my php but the server did not support it, so I edited the php.ini file and changed the value of "allow_url_include" to "On", but It is still not including the files, which in this case led me to think that I needed to restart the server for the changes to take effect...but in that case, could you know why the php "include()" function is still not working?
Modifications to the .ini files should be made through cPanel>>Software>>MultiPHP INI, if you make the modification there and it still isn't reflected, this would mean that your provider has it disabled for your version of PHP. In order to resolve this you'd need to work with them.
 

Cypherjac

Member
Dec 12, 2019
5
2
3
public_html
cPanel Access Level
Website Owner
Modifications to the .ini files should be made through cPanel>>Software>>MultiPHP INI, if you make the modification there and it still isn't reflected, this would mean that your provider has it disabled for your version of PHP. In order to resolve this you'd need to work with them.
Thanks for your help, I'll contact my service provider.
 
  • Like
Reactions: cPanelLauren