How to restart Apache (HTTP) in Linux (Centos)
For those using our managed servers with root access, here are the commands to do it from the command line:
/sbin/service httpd restart
/sbin/service httpd start
/sbin/service httpd stop
How to View Apache Status(Tell if it is running)
(Example of Apache being stopped)
Setting to change or add :
vi /etc/httpd/conf.d/phpmyadmin.conf Alias /phpmyadmin /usr/share/phpmyadmin Alias /phpMyAdmin /usr/share/phpmyadmin Alias /mysqladmin /usr/share/phpmyadmin
Change from cookie to http
vi /usr/share/phpmyadmin/config.inc.php [...] /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; [...]
Currently, this setup is configured to deny access to any connection not being made from the server itself. Since we are working on our server remotely, we need to modify some lines to specify the IP address of your home connection.
Change any lines that read
Require ip 127.0.0.1or
Allow from 127.0.0.1to refer to your home connection's IP address. If you need help finding the IP address of your home connection, check out the next section. There should be four locations in the file that must be changed:
When you are finished, restart the Apache web server
. . . Require ip your_workstation_IP_address . . . Allow from your_workstation_IP_address . . . Require ip your_workstation_IP_address . . . Allow from your_workstation_IP_address . . .
If you can not authenticate via the web interface (localhost/phpmyadmin/) then try change authentication type to cookie.
$cfg['Servers'][$i]['auth_type'] = 'cookie';