Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, Ubuntu-6.06.1-LAMP-server-amd64 I have the said server installed and configured. The server is now running. $ ps -ef | egrep '/mysql|postfix|portmap|apache2' Code: daemon 3513 1 0 09:56 ? 00:00:00 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,787

    How to test a LAMP server


    Hi folks,

    Ubuntu-6.06.1-LAMP-server-amd64


    I have the said server installed and configured. The server is now running.

    $ ps -ef | egrep '/mysql|postfix|portmap|apache2'
    Code:
    daemon    3513     1  0 09:56 ?        00:00:00 /sbin/portmap -i
    127.0.0.1
    root      4022     1  0 09:56 ?        00:00:00 /bin/sh
    /usr/bin/mysqld_safe
    mysql     4086  4022  0 09:56 ?        00:00:00 /usr/sbin/mysqld
    --basedir=/usr --datadir=/var/lib/mysql --user=mysql
    --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306
    --socket=/var/run/mysqld/mysqld.sock
    root      4254     1  0 09:56 ?        00:00:00 /usr/sbin/saslauthd -m
    /var/spool/postfix/var/run/saslauthd -a pam
    root      4255  4254  0 09:56 ?        00:00:00 /usr/sbin/saslauthd -m
    /var/spool/postfix/var/run/saslauthd -a pam
    root      4256  4254  0 09:56 ?        00:00:00 /usr/sbin/saslauthd -m
    /var/spool/postfix/var/run/saslauthd -a pam
    root      4257  4254  0 09:56 ?        00:00:00 /usr/sbin/saslauthd -m
    /var/spool/postfix/var/run/saslauthd -a pam
    root      4258  4254  0 09:56 ?        00:00:00 /usr/sbin/saslauthd -m
    /var/spool/postfix/var/run/saslauthd -a pam
    root      4430     1  0 09:56 ?        00:00:00 /usr/sbin/apache2 -k
    start -DSSL
    www-data  4468  4430  0 09:56 ?        00:00:00 /usr/sbin/apache2 -k
    start -DSSL
    www-data  4469  4430  0 09:56 ?        00:00:00 /usr/sbin/apache2 -k
    start -DSSL
    www-data  4470  4430  0 09:56 ?        00:00:00 /usr/sbin/apache2 -k
    start -DSSL
    www-data  4471  4430  0 09:56 ?        00:00:00 /usr/sbin/apache2 -k
    start -DSSL
    www-data  4472  4430  0 09:56 ?        00:00:00 /usr/sbin/apache2 -k
    start -DSSL
    satimis   4906  4836  0 10:35 pts/2    00:00:00 grep -E
    /mysql|postfix|portmap|apache2
    $ sudo iptables --list
    Code:
    Password:
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    TCPMSS     tcp  --  anywhere             anywhere            tcp
    flags:SYN,RST/SYN tcpmss match 1400:1536 TCPMSS clamp to PMTU
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination


    Please advise how to test this server? Where can I find appropriate
    documents on testing a LAMP server?

    1)
    Self test


    2)
    Testing with a workstation

    I don't have router so I'll install an additional network card on the
    server and connect it with a Cat5 cable to the workstation (one network
    card on workstation). OR is there any other suggestions? TIA


    3)
    Testing on Internet.

    I don't have Domain nor Static IP. I'll register a free Domain later
    for this test and use Dynamic IP.


    Now my problem is I have only on broadband. Connecting the workstation to Internet via a modem? I have modem available.


    Advice will be appreciated. Tks.


    B.R.
    satimis

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Quote Originally Posted by satimis
    I don't have router so I'll install an additional network card on the
    server and connect it with a Cat5 cable to the workstation (one network
    card on workstation). OR is there any other suggestions? TIA

    [...]

    Now my problem is I have only on broadband. Connecting the workstation to Internet via a modem? I have modem available.
    Yes, you can do that. The server can act as a router too, forwarding the internet to your workstation. You should be able to do that using most firewalls, like shorewall for example.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,787
    Quote Originally Posted by antidrugue
    Yes, you can do that. The server can act as a router too, forwarding the internet to your workstation. You should be able to do that using most firewalls, like shorewall for example.
    Noted with tks.

    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •