LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I used to have net, now i don't. (https://www.linuxquestions.org/questions/linux-newbie-8/i-used-to-have-net-now-i-don%27t-4175524787/)

rui.o.pereira 11-08-2014 08:54 AM

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).

fatmac 11-10-2014 05:38 AM

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'.

rui.o.pereira 11-10-2014 10:46 AM

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

rui.o.pereira 11-10-2014 11:53 AM

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 :D


All times are GMT -5. The time now is 01:32 AM.