Results 1 to 10 of 30
Ok I've got the following apache packages on my box:
Code:
apache2
apache2-devel
apache2-doc
apache2-example-pages
apache2-jakarta-tomcat-connectors
apache2-mod_auth_mysql
apache2-mod_fastcgi
apache2-mod_macro
apache2-mod_perl
apache2-mod_python
apache2-mod_ruby
apache2-mod_prefork
apache2-worker
apache-ant
libapr0
i downloaded all of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-31-2004 #1
Problems setting up Apache on SuSE 9.1
Ok I've got the following apache packages on my box:
i downloaded all of these via YaST.Code:apache2 apache2-devel apache2-doc apache2-example-pages apache2-jakarta-tomcat-connectors apache2-mod_auth_mysql apache2-mod_fastcgi apache2-mod_macro apache2-mod_perl apache2-mod_python apache2-mod_ruby apache2-mod_prefork apache2-worker apache-ant libapr0
Since this is my first time trying to use apache (so it would be useful if you could post some sites on it, Ihave looked around but with the overwhelming amount of material it's difficult to know what's good) I'm a bit lost.
So I installed the above files, and have found my index files under /srv/www/htdocs and the httpd.conf in /etc/apache2/httpd.conf and I see that the port is set to port 80.
But when I open a web browser I type http://localhost I get the following error:. reading around this sugests that apache isn't swiched on so I go to terminal and typeThe connection was refused when attempting to contact localhost.Code:inux:/home/dylunio # httpd -k start bash: httpd: command not found
<edit> I'll add the return from</edit>Code:linux:/home/dylunio # pidof httpd linux:/home/dylunio #
Anything I try with httpd at the begining or apachectl (these are the two commands I've tried with various things after them) get the 'command not found' error on both user and root.
So what have I done wromg, or have to do to get apache up and running?
Thanks;
dylunio
- 12-31-2004 #2then run the full pathCode:
whereis httpd
-lakerdonald
- 12-31-2004 #3
Ok this is the return from whereis httpd:
But this is a directory and thus will not run, the outputs from putting start after it is:Code:inux:~ # whereis httpd httpd: /etc/httpd
I've found the httpd.conf fine in /etc/apache2/httpd.conf, but when I try and run it (if this is what i'm suposed to run I get:Code:inux:~ # /etc/httpd start bash: /etc/httpd: is a directory linux:~ #
thanks;Code:linux:~ # /etc/apache2/httpd.conf start bash: /etc/apache2/httpd.conf: Permission denied
dylunio
- 12-31-2004 #4
go to the /etc/httpd directory.
what's in there?
it sounds like you didn't install apache correctly
-lakerdonald
- 12-31-2004 #5
/etc/httpd contains:
mailman.conf
susehelp.conf
susehelp.conf.old
and the dir 'modules' which contains:
mailman
susehelp
I'm suprised that apache is installed incorrectly, usualy YaSt does a good job of this.
If you don't have any more suggestions I might try and reinstall via yast, and if I stall have trouble I'll compile the source;
Thanks;
dylunio
- 12-31-2004 #6
yes, Yast usually does do a good job
go ahead and reinstall
-lakerdonald
- 12-31-2004 #7
I seem to be going someware with a httpd2 file I found:
Does any one know what I'm doing wrong?Code:linux:~ # httpd2 start Usage: httpd2 [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-k start|restart|graceful|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-S] Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings) -S : a synonym for -t -D DUMP_VHOSTS -t : run syntax check for config files linux:~ # httpd2 -k start httpd2: could not open document config file /etc/apache2/sysconfig.d/include.conf
thanks;
dylunio
- 12-31-2004 #8
hmmm.
well it's a start
go ahead with the reinstall though
-lakerdonald
- 12-31-2004 #9
Will do;
dylunio
- 12-31-2004 #10
I have the same problem after re-installing from YaST, which is that a file (/etc/apache2/sysconfig.d/include.conf) dosn't exist so the httpd2 -k start ill not work;
I'll have a bash at installing the source;
dylunio


Reply With Quote
