Forum Discussion
Altera_Forum
Honored Contributor
16 years agoBoa configuration
Hi,
When I execute boa I receive an error as: --- Quote Start --- [30/Nov/1999:00:14:38 +0000] No such user: root --- Quote End --- I have tried to configure boa but I haven't succeeded . I have changed some parameters of "etc/boa.conf", I Also have inserted some printf's in "config.c" to check if the information that is read is correct. I have noticed that information that is readed is always the same althought I have modified boa.conf. This is the correct file to change the configuration of Boa?, or which things I do wrong. PD: I have a DE2-70 with uclinux MMU Thanks a lot12 Replies
- Altera_Forum
Honored Contributor
Where is the file that you are modifying?
- Altera_Forum
Honored Contributor
Hi,
I have found two boa.conf, and I have changed the two of them to know what happened. The first path is: /nios2-linux/uClinux-dist/romfs/etc/boa.conf The second path: /nios2-linux/uClinux-dist/romfs/home/httpd/boa.conf I have tried to change user to nobody, to try to avoid this error: --- Quote Start --- [30/Nov/1999:00:14:38 +0000] No such user: root --- Quote End --- Thanks a lot - Altera_Forum
Honored Contributor
I have a running boa (on a No-MMU installation)
in my /etc/boa there is (comment lines deleted) Port 80 User root Group root ServerName www.nios2.com (http://www.nios2.com) DocumentRoot /home/httpd UserDir public_html DirectoryIndex index.html KeepAliveMax 100 KeepAliveTimeout 20 MimeTypes /etc/mime.types DefaultType text/html ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/ (www.nios2.com (http://www.nios2.com) seems to be quite irrelevant, I don't have such a thing) Moreover I do have a user ftp with no password: cat /etc/passwd root:$1$9T/VnwvK$ftljw4uPOFUdEHO.v3yh5/:0:0:root:/:/bin/sh ftp:x:500:500:FTP User:/home/ftp: and a directory /home/ftp for boa to use. -Michael - Altera_Forum
Honored Contributor
--- Quote Start --- Hi, I have found two boa.conf, and I have changed the two of them to know what happened. The first path is: /nios2-linux/uClinux-dist/romfs/etc/boa.conf The second path: /nios2-linux/uClinux-dist/romfs/home/httpd/boa.conf I have tried to change user to nobody, to try to avoid this error: Thanks a lot --- Quote End --- If you modify either of those, they will get overwritten on build. You should edit the one in your vendor directory e.g. vendors/Altera/common/boa.conf - Altera_Forum
Honored Contributor
Hi,
Many thanks for answers. I have changed the parameter user to nobody, the error: --- Quote Start --- No such user:root --- Quote End --- has disappeared. Althought now has appeared another one : --- Quote Start --- [30/Nov/1999:00:00:15 +0000] ../../boa-0.94.14rc21/src/boa.c:262 (drop_privs) - getpwuid: No such file or directory child process exit abnormally.: No such file or directory --- Quote End --- I will continue searching a solution, and thanks a lot anyway - Altera_Forum
Honored Contributor
I had the same problem with you.Now I almost gave up.Maybe boa is impossible to work in Linux on DE2-70...But I wandering that if you found the solutions?
- Altera_Forum
Honored Contributor
It's very unlikely that this can't work, I use boa happily on a NEEK board (with uClinux NoMMU). Hardware issues should not affect boa in any way.
-Michael - Altera_Forum
Honored Contributor
Boa can work well in uClinux.So did you try some other web server in linux on DE2-70?
- Altera_Forum
Honored Contributor
Well, it looks that that particular error is due to a missing /etc/passwd file?? -slacker../../boa-0.94.14rc21/src/boa.c:262 (drop_privs) - getpwuid: No such file or directory child process exit abnormally.: No such file or directory - Altera_Forum
Honored Contributor
--- Quote Start --- did you try some other web server in linux on DE2-70? --- Quote End --- I don't have a DE2-70. But as said, hardware should not matter here. -Michael