apache problem

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
Subbeh
Newbie
Posts: 3
Joined: Sat Nov 13, 2004 10:59 pm

apache problem

Post by Subbeh »

I installed apache using these command,
"emerge sync && emerge mod_php"
changing servername in /etc/apache2/conf/apache2.conf
"echo "APACHE2_OPTS=\"-D SSL -D PHP4\"" >> /etc/conf.d/apache2"

but when i start it with "/etc/init.d/apache2 start" i get a syntax error saying:
Syntax error on line 44 of /usr/lib/apache2/conf/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateFile: file '/usr/lib/apache2/conf/ssl/server.crt' does not exist or is empty

when i turn off SSL i get another error saying there is no error_log
jin
Newbie
Posts: 2
Joined: Mon Nov 15, 2004 11:10 am

i didn't get this ssl error before

Post by jin »

so i got turned off ssl like you :D

find a directory that contains the log file,
then change ownership root to apache
Subbeh
Newbie
Posts: 3
Joined: Sat Nov 13, 2004 10:59 pm

Post by Subbeh »

I got it working now.
though I havent changed ownership root to apache, how do i do that?
Also when i try to upload files through ftp it says i don't have permission, i know it's got something to do with chmod but i can't really figure it out, its all kinda new to me :roll:
jin
Newbie
Posts: 2
Joined: Mon Nov 15, 2004 11:10 am

Post by jin »

Subbeh wrote:I got it working now.
Congratulation!

To upload files through ftp, just change owner and group of web document root directory to your ftp user's.

chown -R owner.group /var/www/localhost/htdocs/
Subbeh
Newbie
Posts: 3
Joined: Sat Nov 13, 2004 10:59 pm

Post by Subbeh »

everything works, thanks man :)
digitalbanana
Newbie
Posts: 5
Joined: Wed Dec 15, 2004 3:42 am

Post by digitalbanana »

Im getting the same error, line 44 etc, how did you turn off SSL?

i have attempted to turn it off in 41_mod_ssl.default-vhost.conf by changing SSLEngine to 'off'. still get the error!
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

just miss out the -D SSL in /etc/conf.d/apache2
If you keep an open mind, will your brain fall out?
Deftochino
Newbie
Posts: 3
Joined: Thu Nov 04, 2004 1:20 am
Location: Atlanta, GA

Post by Deftochino »

if you guys do happen to want SSL support for your apache installation, you will need to copy server.crt and server.key from /var/tmp/portage/ to /etc/apache2/conf/ssl (you'll have to mkdir the directory). Then also make sure /var/cache/apache2 exists. This is all due to some inconvenient problem with the current net-www/apache-2.0.52-r1 ebuild.

here are two great links to help you out further http://gentoo-wiki.com/HOWTO_Apache2 (gentoo wiki how-to on apache) and http://forums.gentoo.org/viewtopic.php? ... highlight= (gentoo forums post regarding this problem)...

hope this helps :P
Post Reply