View previous topic :: View next topic |
Author |
Message |
Xisaraba n00b
Joined: 27 Jan 2020 Posts: 15
|
Posted: Mon Jan 27, 2020 4:19 pm Post subject: Apache cannot start |
|
|
I installed apache by the wiki, I wanted to start it, and it falls into the next error, my interface is enp1s0.
Code: | sudo /etc/init.d/apache2 start
Password:
* Bringing up interface eth0
* ERROR: interface eth0 does not exist
* Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth0 failed to start
* Bringing up interface eth0
* ERROR: interface eth0 does not exist
* Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth0 failed to start
* ERROR: cannot start netmount as net.eth0 would not start
* ERROR: cannot start apache2 as net.eth0 would not start |
I looked through all the configs, I could not find how to change the interface, I use dhcp. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Mon Jan 27, 2020 4:49 pm Post subject: |
|
|
How are you starting your network?
For OpenRC you should be using /etc/init.d/net.(something) - this provides the service "net" that apache needs.
However OpenRC is claiming that starting /etc/init.d/net.eth0 is failing to find your actual ethernet device eth0. With the persistent device naming you should be using /etc/init.d/net.enp1s0 instead of net.eth0 as the filename as the script uses the filename to start the device, perhaps trying this may work? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Xisaraba n00b
Joined: 27 Jan 2020 Posts: 15
|
Posted: Mon Jan 27, 2020 4:53 pm Post subject: |
|
|
eccerr0r wrote: | How are you starting your network?
For OpenRC you should be using /etc/init.d/net.(something) - this provides the service "net" that apache needs.
However OpenRC is claiming that starting /etc/init.d/net.eth0 is failing to find your actual ethernet device eth0. With the persistent device naming you should be using /etc/init.d/net.enp1s0 instead of net.eth0 as the filename as the script uses the filename to start the device, perhaps trying this may work? |
Thanks!
I`m starting network with dhcp. How can i tell apache to use /etc/init.d/net.enp1s0? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Mon Jan 27, 2020 6:25 pm Post subject: |
|
|
Are you using "/etc/init.d/net.enp1s0 start" to start your network -- is this working for you? If this is in your default runlevel it should tell apache it's started and should run fine. Somehow it seems you have an /etc/init.d/net.eth0 which shouldn't be the case unless (one of) your network device is showing up at eth0... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Xisaraba n00b
Joined: 27 Jan 2020 Posts: 15
|
Posted: Mon Jan 27, 2020 8:56 pm Post subject: |
|
|
eccerr0r wrote: | Are you using "/etc/init.d/net.enp1s0 start" to start your network -- is this working for you? If this is in your default runlevel it should tell apache it's started and should run fine. Somehow it seems you have an /etc/init.d/net.eth0 which shouldn't be the case unless (one of) your network device is showing up at eth0... |
Yep! I had /etc/init.d/net.eth0 which was useless. Thank you! |
|
Back to top |
|
|
|