Kezdőlap › Fórumok › SOS! Bajban vagyok › ADSL+belsõnet+apache+php
- This topic has 10 hozzászólás, 6 résztvevő, and was last updated 20 years, 8 months telt el by
pomm.
-
SzerzőBejegyzés
-
2004-10-15-09:40 #1978004
Sziasztok !
Kérnék tanácsot, mit hogyan tegyek, hogy a szerverem router is legyen, meg az apache-ban a php (mert lefordítottam) mûködjön ?
Jelenleg az eth0 (RTL8139) a végpontra kötve, bejelentkezés a szolgáltatóhoz OK, még egy ppp0 if is létrejön.
Az eth1 (RTL8139) a belsõ háló, 192.168.1.0, és az útválasztással vannak gondjaim.
Hogyan tudnám elérni, hogy a kérések a belsõ hálóból kijussanak a net felé ? Milyen parancsot kell kiadnom ?Amíg egy StLab router volt fenn, addig rendkívül gyors volt a net, de ha pl. egy XP-vel osztjuk meg a kapcsit (az StLab elszállt), akkor rémületesen lassú. Ehhez kellene a 100/100-as hálókártya ?
Apache+php:
Letöltöttem a php-t, ./configure, make, make install, httpd.conf-ba benne vagyon az addtype… sor, és a php-lapot nem php-ként kezeli, tehát nem igazán fut(hat) le.Mit tudnátok tanácsolni ?
Köszönettel:
[align=right][snapback]90019[/snapback][/align]Az apache problémára klikk a linkre az alárásomban > FAQ menü
Az iptables(net megosztás) meg már mostanság szokszor szerepelt, pontosan ezügyben, fejbõl nem tom2004-10-15-09:47 #1978005Kérnék tanácsot, mit hogyan tegyek, hogy a szerverem router is legyen…
Hogyan tudnám elérni, hogy a kérések a belsõ hálóból kijussanak a net felé ? Milyen parancsot kell kiadnom ?
Engedelyezned kell a csomagtovabbitast…
Mivel nem irtad hogy milyen disztribuciot hasznalsz most leirok ket modszert.
Debian:
/etc/network/options file-banCode:ip_forward=yesmajd /etc/init.d/networking restart
Altalanos (minden disztibucio):
Code:echo 1 > /proc/sys/net/ipv4/ip_forwardmajd /etc/init.d/networking restart
(ez csak a kovetkezo ujrainditasig fog elni. Veglegesiteni az adott
disztrib szerint szukseges)Majd disztrib-tol fuggetlenul:
Code:iptables -t nat -A POSTROUTING -o ppp0 -j SNAT –to 1.2.3.4Ahol:
1.2.3.4 a szervered publikus (internet fele nezo) IP cime
ppp0 a szervered publikus (internet fele nezo) halozati eszkoze(ez csak a kovetkezo ujrainditasig fog elni. Veglegesiteni az adott
disztrib szerint szukseges)Vagy megprobalhatod Debian eseten: (lehet hogy mashol is mukodik)
/etc/init.d/iptables save active2004-11-04-12:05 #1978006Sziasztok..
Akadt egy kis problémám…fordítanám sany leírásá alapján a php-4.3.9-et, de ezt kapom:root@pomm:/mnt/pomm/progik/teszteltek/tarball/php-4.3.9# ./configure –with-mysql –with-apache=/usr/include/apache –enable-track-vars
loading cache ./config.cache
checking host system type… i686-pc-linux-gnu
checking for gcc… (cached) gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking whether gcc and cc understand -c and -o together… (cached) yes
checking how to run the C preprocessor… (cached) gcc -E
checking for AIX… no
checking if compiler supports -R… (cached) no
checking if compiler supports -Wl,-rpath,… (cached) yes
checking for re2c… (cached) exit 0;
checking for ranlib… (cached) ranlib
checking whether ln -s works… (cached) yes
checking for mawk… (cached) gawk
checking for bison… (cached) bison -y
checking bison version… 1.35 (ok)
checking for flex… (cached) flex
checking for yywrap in -lfl… (cached) yes
checking lex output file root… (cached) lex.yy
checking whether yytext is a pointer… (cached) yes
checking for working const… (cached) yes
checking flex version… 2.5.4 (ok)
checking for pthreads_cflags… (cached) -pthread
checking for pthreads_lib… (cached)Configuring SAPI modules
checking for AOLserver support… no
checking for Apache 1.x module support via DSO through APXS… no
checking for Apache 1.x module support… no
configure: error: Invalid Apache directory – unable to find httpd.h under /usr/include/apachepedig ott van…
:blink:2004-11-04-13:02 #1978007Sziasztok..
Akadt egy kis problémám…fordítanám sany leírásá alapján a php-4.3.9-et, de ezt kapom:root@pomm:/mnt/pomm/progik/teszteltek/tarball/php-4.3.9# ./configure –with-mysql –with-apache=/usr/include/apache –enable-track-vars
loading cache ./config.cache
checking host system type… i686-pc-linux-gnu
checking for gcc… (cached) gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking whether gcc and cc understand -c and -o together… (cached) yes
checking how to run the C preprocessor… (cached) gcc -E
checking for AIX… no
checking if compiler supports -R… (cached) no
checking if compiler supports -Wl,-rpath,… (cached) yes
checking for re2c… (cached) exit 0;
checking for ranlib… (cached) ranlib
checking whether ln -s works… (cached) yes
checking for mawk… (cached) gawk
checking for bison… (cached) bison -y
checking bison version… 1.35 (ok)
checking for flex… (cached) flex
checking for yywrap in -lfl… (cached) yes
checking lex output file root… (cached) lex.yy
checking whether yytext is a pointer… (cached) yes
checking for working const… (cached) yes
checking flex version… 2.5.4 (ok)
checking for pthreads_cflags… (cached) -pthread
checking for pthreads_lib… (cached)Configuring SAPI modules
checking for AOLserver support… no
checking for Apache 1.x module support via DSO through APXS… no
checking for Apache 1.x module support… no
configure: error: Invalid Apache directory – unable to find httpd.h under /usr/include/apachepedig ott van…
:blink:
[align=right][snapback]94765[/snapback][/align]töltsd le a legfrissebb shot-ot a php-ból és fordítsd le azt
talán
shot.php.net ????
nem emlékszem pontosan2004-11-04-13:06 #1978008ezek szerint megsem… 🙂
probald ./configure –with-apxs=…… -vel…
ird le ,hogy hova teddet az apachot,mi az apache verzio…(1….,2…)udv,sutyee
2004-11-04-14:19 #1978009az a helyzet, hogy nem telepítettem az apache-ot, hanem a slackware-nek része…szal, már gondolkodtam, hogy telepítem, mert a mysql sem megy ( pedig szintén felteszi ) csak ha felrakom újra…
2004-11-04-15:25 #1978010Szia!
Ha nem akarsz szívni akkor tudom ajánlani a http://www.apachefriends.org
honlapot.letöltöd a lampp-ot kicsomagolod az opt konyvtárba /opt/lampp/lampp start és voálá apache(ssl) php ftp. mysql külön inditható.
2004-11-05-11:23 #1978011köszi, megnézem, ez legalább emberi nyelven van 😀
2004-11-05-13:52 #1978012ez tényleg sirály!!!!!!!!!!!
Már készítgetem, köszönöm szépen! 🙂2004-11-06-11:36 #1978013egy nagyon lámer kérdés…sajna csak ismerxem a mysql-lal…szal sikerült lementenem az uw-ról a mysql táblát. Amit viszont nem tudok, hogy hogyan importálom a táblát, már ha vissza akarom állítani..
Másik kérdés:
feltettem a lammp-ot. Indul minden, megadom az install.php-ét ( teszt gyanánt ) és kéri ugya a mysql adatbázis, jelszó,felhasználó adatokat…sajátgépnél itt mit kell megadnom? gondolom a szerver, localhost, de a többi????
Elõre is köszi… -
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz