Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]How can I start APACHE server with only PPP0?
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
Pulie
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2004
Posts: 96
Location: Finland

PostPosted: Tue Aug 05, 2014 1:02 pm    Post subject: [solved]How can I start APACHE server with only PPP0? Reply with quote

Hi,

How can I start apache server with only ppp0?

Code:
/
/etc/init.d/apache2 start
 * Bringing up interface eth0
 *   config_eth0 not specified; defaulting to DHCP
 *   dhcp ...
 *     Running udhcpc ...
 *     start-stop-daemon: failed to start `/bin/busybox'                  [ !! ]
 * ERROR: net.eth0 failed to start
 * ERROR: cannot start apache2 as net.eth0 would not start



I use wvdial to open internet connection of my wireless umts modem. That dhcpcd messes up with my internet connection everytime it tries to start with apache.

Thanks for the help in advance!


Last edited by Pulie on Mon Aug 11, 2014 9:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
Pulie
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2004
Posts: 96
Location: Finland

PostPosted: Fri Aug 08, 2014 6:49 pm    Post subject: Reply with quote

*ugh*
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1717

PostPosted: Fri Aug 08, 2014 9:07 pm    Post subject: Reply with quote

I bet apache requires net, which makes init system trigger udhcpc via dependency tree.
Make a service that would launch wvdial and provide "net", that should fix the problem. Also remove/disable other things that provide net to avoid conflict. Or change /etc/conf.d/apache to make it no longer require net. Since it's a web service, this seems to be a bad idea though.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42587
Location: 56N 3W

PostPosted: Fri Aug 08, 2014 9:53 pm    Post subject: Reply with quote

Pulie,

You need to be able to start ppp0 in the /etc/conf.d/net file.

Code:
config_eth0="null"
config_ppp0="ppp"
link_ppp0="eth0"
plugins_ppp0="pppoe"
pppd_ppp0="defaultroute"
usepeerdns"
username_ppp0='your username'
password_ppp0='your password'


The config_eth0="null" says to leave eth0 unconfigured. Thats key.
The rest sets up PPP over eth0.

PPP has a lot of options, the above is required but not sufficient an you need to invoke wvdial too.
Im sure PPP can do that as I used to use something similar over a 56k modem a long time ago.


--- Edit ---
Hmm maybe you don't need plugins_ppp0="pppoe"
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Pulie
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2004
Posts: 96
Location: Finland

PostPosted: Mon Aug 11, 2014 9:07 pm    Post subject: Reply with quote

solved this by disabling net at the moment

Code:
echo 'rc_need="!net"' >> /etc/conf.d/apache2


thanks for the help!!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42587
Location: 56N 3W

PostPosted: Mon Aug 11, 2014 9:20 pm    Post subject: Reply with quote

Pulie,

Thats ugly. Better to say in /etc/rc.conf that net is provided by ppp0.
Thats still ugly.

In both cases, it breaks if ppp0 is not up
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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