LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2014, 08:54 AM   #1
rui.o.pereira
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Rep: Reputation: Disabled
I used to have net, now i don't.


Viva,

I need your help.

Before...(a week ago)

When I installed linux box magic (Portuguese caixa mágica a kind of mandriva, i think, not sure) 15 KDE (it's an old laptop) had conection to the net and worked very well.

Then...

Once installed (apt-get install kdevelop) compiler (gcc) C was at or synaptic (honestly I do not remember ...)

Well as apache, mysql and php (now I lack the apache module for php (apache2php))

Another was by apt-get install, others went by synaptic.

(would have been easier, install the LAMP or XAMPP, but I didn't found them.)

Wanted to experiment with sockets (pipes) in linux CM15. with two C programs (server.c and client.ce) for my students to see programming.

And other updates ... (No longer remember which ...)

Now I can not connect to the net (either by wire or by wireless machine has two IP (s) and not with any league, either by forcing DHCPcomo IP (s) and putting the ip of the gateway.
(had debt if WEP or WPA connection, but I've seen it, is WPA Personal)

No, it is not the connection I have a windows 7 64 bit on the side that works well both wired and wirelessly).

I confess, that I made a "joke", being an old machine, I changed the /etc/inittab and slipped init, default to 3 (didn't need the KDE interface) but returned already put 5. (just because I wanted to compile my character-mode: cliente.ceo my server .c) in windows: it does not compile .... because of the socket library.

loopback works because it responds in apache firefox to: http: // localhost and your sole to the IP (http://192.168.10.4) and oddly enough, I have an apache on windows (this has 2 IPs) "http://192.168.10.4" (wireless) and http://192.168.10.8 (wired) and my magic box also binds well to them without problems ..

Have to do with firefox? I can not open the page by google.pt, everything is external, does not forget, internal (machine side windows) works fine, but sapo.pt ping does not work ...


Sorry for the confusion (my weak english), but I wanted to prepare a lesson to teach sockets with two processes communicating through a pipe ... And also needed to go to the net get apache2php the module and add it to httpd.conf apache.


Someone can give me a 'hand'? (I have had to have lost the net connection and and do not know why)

Someone can indicate me, specify a command that makes the verification link? (already ran fsck as root).
 
Old 11-10-2014, 05:38 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Check to see if you have a connection, in a terminal as 'root'.
Code:
ifconfig -a
Then try to bring up a connection.
Code:
ifup lan0
for ethernet, or try
Code:
ifup wlan0
for wifi.

If you need a terminal application to configure your network interfaces, I use 'ceni'.
 
Old 11-10-2014, 10:46 AM   #3
rui.o.pereira
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
HEY
THANK'S!

Don't know how...
I don't know what happened, but now, i think.. It's working, that's a new one witch i didn't knew, (but i also restarted the router when i typped: ifup eth1)
but im my wireless: i did (ifup eth0) i dont have the interface "wlan0" ... (my wireless is incorporeted in the chipset, i dont' have connect pen to catch the wireless signal)
my interfaces are: eth0, eth1 and the normal loopback (i don´t have wlan#) the wired rj-45 interface is disconected, but the antenna eth1 seems to be working so far.
i also did: "man ifconfig" and i don't have the -a parameter/argument ...(i think..) but it (ifconfig -a) takes longer to run than the only typped "ifconfig" , FatMac, what that does?

now i see that the ifup eth1 it activates the interface (probably it was disabled)....



Now i'm back to my main problem: installing the apache module for interpreting/redirect the php requests...
I had installed mysql and now i have the mysqld working... That's one...
I also installed the apache and is running too, that's two....
and the php compiler/interpreter is also installed and reading php pages..i test it.In the php command line;<?php printf("hello"); ?> that makes three..
and i lack the damm module.. .something like "apache2php... " is there a package with this thing? <?php phpinfo(); ?> (inside the index.html and gives nothing...)

I weared about a lamp and/or xampp consoles that integrates the whole thing but i can't reach them with my apt-get, i don't even know the name of the packages...

Anyway, Thank's FatMac, i owe you.. ;-) thx

Last edited by rui.o.pereira; 11-10-2014 at 11:51 AM.
 
Old 11-10-2014, 11:53 AM   #4
rui.o.pereira
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
lol... So stupid of me... XD

i managed to get the module "apache-mod_php"

and didn't work because.... -> index.html != index.php



Now it's funny...

thank you all fatmac

Last edited by rui.o.pereira; 11-10-2014 at 11:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't /don't know how to connect ot the net LightSeeker SUSE / openSUSE 4 12-02-2007 10:34 AM
i don't link to sourceforge.net,why ywchen2000 General 3 01-26-2006 05:04 AM
Net cards on my Acer 1692wlmi don't work!! HELP! parisisal Linux - Laptop and Netbook 0 09-18-2005 05:25 PM
I don't like J2EE and .NET melinda_sayang Programming 2 05-31-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration