What's new

Apache on RT-N66U works but...

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

spl

Occasional Visitor
I install apache on rt-n66u with merlin firmware
it's runing but dosen't open page by name or ip

Nmap - say 9000/tcp open cslistener
It's my Apache port
If it's open and listening i can go to [domain name in hosts] or [ip]
and i see It works from apache, but it not happens in error log i don't see any errors

admin@RT-N66U:/tmp/home/root# cat /opt/var/apache2/log/error_log
[Tue Oct 08 18:21:12 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 08 18:21:12 2013] [notice] Digest: done
[Tue Oct 08 18:21:14 2013] [warn] pid file /opt/var/apache2/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Oct 08 18:21:14 2013] [notice] Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.7m DAV/2 configured -- resuming normal operations


admin@RT-N66U:/tmp/home/root# ps w | grep apache
1890 apache 12892 S /opt/sbin/httpd -k start
1891 apache 13188 S /opt/sbin/httpd -k start
1892 apache 13188 R /opt/sbin/httpd -k start
1893 apache 13076 S /opt/sbin/httpd -k start
1894 apache 13076 R /opt/sbin/httpd -k start
1895 apache 7692 S /opt/sbin/httpd -k start
1896 apache 7692 S /opt/sbin/httpd -k start
1897 apache 13188 S /opt/sbin/httpd -k start
1898 apache 7692 R /opt/sbin/httpd -k start
1899 apache 13188 R /opt/sbin/httpd -k start
1900 apache 7692 R /opt/sbin/httpd -k start
1901 apache 13188 R /opt/sbin/httpd -k start
1902 apache 13188 R /opt/sbin/httpd -k start
1909 apache 13188 R /opt/sbin/httpd -k start
1910 apache 13188 R /opt/sbin/httpd -k start
1911 apache 13188 R /opt/sbin/httpd -k start
1912 apache 13188 R /opt/sbin/httpd -k start
1913 apache 13076 S /opt/sbin/httpd -k start
1914 apache 7692 R /opt/sbin/httpd -k start
1915 apache 7692 R /opt/sbin/httpd -k start
1916 apache 7692 R /opt/sbin/httpd -k start
1917 apache 7692 R /opt/sbin/httpd -k start
1918 apache 7692 R /opt/sbin/httpd -k start
1919 apache 7692 R /opt/sbin/httpd -k start
1920 apache 7692 R /opt/sbin/httpd -k start
1927 apache 7692 R /opt/sbin/httpd -k start
1928 apache 7692 R /opt/sbin/httpd -k start
1938 apache 7692 R /opt/sbin/httpd -k start
1939 apache 7692 R /opt/sbin/httpd -k start
1940 apache 7692 R /opt/sbin/httpd -k start
1941 apache 7692 R /opt/sbin/httpd -k start
1942 apache 7692 R /opt/sbin/httpd -k start
1943 apache 7692 R /opt/sbin/httpd -k start
1944 apache 7692 R /opt/sbin/httpd -k start
1945 apache 7692 R /opt/sbin/httpd -k start
1946 apache 7692 R /opt/sbin/httpd -k start
1947 apache 7692 R /opt/sbin/httpd -k start
1948 apache 7692 R /opt/sbin/httpd -k start
1949 apache 7692 R /opt/sbin/httpd -k start
1950 apache 7692 R /opt/sbin/httpd -k start
1951 apache 7692 R /opt/sbin/httpd -k start
1952 apache 7692 R /opt/sbin/httpd -k start
1953 apache 7692 S /opt/sbin/httpd -k start
1954 apache 13188 R /opt/sbin/httpd -k start
1955 apache 13188 R /opt/sbin/httpd -k start
1956 apache 13188 R /opt/sbin/httpd -k start
1957 apache 13188 R /opt/sbin/httpd -k start
1958 apache 13076 R /opt/sbin/httpd -k start
1959 apache 13076 R /opt/sbin/httpd -k start
1960 apache 13076 R /opt/sbin/httpd -k start
1961 apache 13076 R /opt/sbin/httpd -k start


Code:
admin@RT-N66U:/tmp/mnt/sda1/asusware# cat S80apache.1
#!/bin/sh

if [ ! -e /etc/nsswitch.conf ]; then
    echo "hosts: files dns" >/etc/nsswitch.conf
fi

/opt/sbin/httpd -k start
Which configs i need to check, maybe some option or i can miss something?
 
Found problem
http://tomatousb.ru/viewtopic.php?f=4&t=13 - in rus
Short:
Need for MIPS architecture recompile apache:


For recompile with PMP Prefork we need:
in file optware/ddwrt/make/apache.mk:

comment:
#APACHE_MPM=worker
and uncomment
APACHE_MPM=prefork

after it run in optware/ddwrt/:
make apache-ipk

and in folder optware/ddwrt/builds/ will be compiled:
apache_2.2.9-1_mipsel.ipk
apache-manual_2.2.9-1_mipsel.ipk

we need "apache_2.2.9-1_mipsel.ipk" copy to router, but delete before previous ipkg install apache_2.2.9-1_mipsel.ipk

Looking for sources of apache...
 
Entware or Optware?

If there is a problem with the Entware one, contact ryzhov_al about it - he'll be able to sort it out if needed.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top