Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache cannot start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Xisaraba
n00b
n00b


Joined: 27 Jan 2020
Posts: 15

PostPosted: Mon Jan 27, 2020 4:19 pm    Post subject: Apache cannot start Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Mon Jan 27, 2020 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xisaraba
n00b
n00b


Joined: 27 Jan 2020
Posts: 15

PostPosted: Mon Jan 27, 2020 4:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Mon Jan 27, 2020 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xisaraba
n00b
n00b


Joined: 27 Jan 2020
Posts: 15

PostPosted: Mon Jan 27, 2020 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum