ADSL+belsõnet+apache+php

Kezdőlap Fórumok SOS! Bajban vagyok ADSL+belsõnet+apache+php

10 bejegyzés megtekintése - 1-10 / 11
  • Szerző
    Bejegyzés
  • #1978004
    admin
    Adminisztrátor

      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 tom

      #1978005
      maszili
      Felhasználó

        Ké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-ban

        Code:
        ip_forward=yes

        majd /etc/init.d/networking restart

        Altalanos (minden disztibucio):

        Code:
        echo 1 > /proc/sys/net/ipv4/ip_forward

        majd /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.4

        Ahol:
        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 active

        #1978006
        pomm
        Felhasználó

          Sziasztok..
          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/apache

          pedig ott van…
          :blink:

          #1978007
          gUHU
          Felhasználó

            Sziasztok..
            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/apache

            pedig 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 pontosan

            #1978008
            admin
            Adminisztrátor

              ezek szerint megsem… 🙂

              probald ./configure –with-apxs=…… -vel…
              ird le ,hogy hova teddet az apachot,mi az apache verzio…(1….,2…)

              udv,sutyee

              #1978009
              pomm
              Felhasználó

                az 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…

                #1978010
                schgabi
                Felhasználó

                  Szia!

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

                  #1978011
                  pomm
                  Felhasználó

                    köszi, megnézem, ez legalább emberi nyelven van 😀

                    #1978012
                    pomm
                    Felhasználó

                      ez tényleg sirály!!!!!!!!!!!
                      Már készítgetem, köszönöm szépen! 🙂

                      #1978013
                      pomm
                      Felhasználó

                        egy 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…

                      10 bejegyzés megtekintése - 1-10 / 11
                      • Be kell jelentkezni a hozzászóláshoz.