With a small caveat that I instead of PHP 5.3 opted for PHP 7.
All seemed to be okay exempt for the httpd that will not start properly
[root@amjordan ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Another daemon is listening on port 80.
Run this command:
netstat -anp | grep :80 | grep LISTEN
Above command lists out all processes running and listening on port 80
Furthermore make sure you are not declaring Listen 80 twice in .conf files. For example, you might have it both in ports.conf and inn sites-enabled/www.conf.To find out, use:
grep -ri listen /etc/apache2
Keep Listen 80 in just a single place.
Next scenario may be that nginx is using the port 80.
Another daemon is listening on port 80.
Run this command:
netstat -anp | grep :80 | grep LISTEN
Above command lists out all processes running and listening on port 80
Furthermore make sure you are not declaring Listen 80 twice in .conf files. For example, you might have it both in ports.conf and inn sites-enabled/www.conf.To find out, use:
grep -ri listen /etc/apache2
Keep Listen 80 in just a single place.
Next scenario may be that nginx is using the port 80.
Try shutting it down with:
service nginx stop
or
killall -9 nginx
and then start httpd
Dear martfox
I tried the first
Another daemon is listening on port 80.
Run this command:
netstat -anp | grep :80 | grep LISTENAbove command lists out all processes running and listening on port 80
Furthermore make sure you are not declaring Listen 80 twice in .conf files. For example, you might have it both in ports.conf and inn sites-enabled/www.conf.To find out, use:
grep -ri listen /etc/apache2Keep Listen 80 in just a single place.
The results were
[root@amjordan ~]# grep -ri listen /etc/apache2
grep: /etc/apache2: No such file or directory
[root@amjordan ~]#
By know Nginx seems to be culprit
Next scenario may be that nginx is using the port 80.
Try shutting it down with:
service nginx stop
as after stopping nginx and restart httpd
we get the following by restarting nginx
[root@amjordan ~]# sudo service nginx restart
Stopping nginx: [FAILED]
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[FAILED]
[root@amjordan ~]#
I presume that this suggests that I have already setup virtual hosts but I have not.
sudo nano /etc/nginx/ .... is empty
Step 3 was about installing nginx and in step 4 in this digitalocean.com tutorial they talked about installing PHP. As it turned out it was PHP 5.3 and not PHP 7 as I intended. I unstalled PHP 5.3 and use the tutorial of techadmin.com
To install PHP 7.0 and from there on I returned to Step 5 of the digitalocean tutorial i was following where it says that step 5 is all about configuring php.
I had a friend walk me through the steps I followed before but as it turned out my firewall blocked port 80 that is one thing and the other is that I am still in the process of making nginx work for me.
What is this Playbook actually ? Is it a script that can be executed at this moment when I am still having to get Nginx to accept and execute php files ?
What is this Playbook actually ? Is it a script that can be executed at this moment when I am still having to get Nginx to accept and execute php files ?
Playbook is an Ansible's configuration language. Ansible is a software configuration management tool. It describes a set of steps you want to execute. So, @cscart/server-ansible-playbooks helps to configure environment for CS-Cart and Multi-Vendor. You should use lemp7.yml to set up NGINX + PHP-FPM 7.0.x. (FastCGI). This is the easiest way to bootstrap your server from scratch without any knowledge of server configuration.