LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2005, 04:52 PM   #1
opiea
Member
 
Registered: Mar 2004
Location: Ortonville, MI
Distribution: Ubuntu 7.04 Feisty Fawn
Posts: 30

Rep: Reputation: 15
Unhappy Apache SSL Problem


I am a newbie Linux user trying to set up a web server on Fedora 3. MYSQL starts fine but I would like to know the command to set the root password and stuff. Also, when I try to start apache i get this:

[opiea@localhost ~]$ cd /etc/init.d
[opiea@localhost init.d]$ ./httpd start
Starting httpd: Syntax error on line 117 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/ssl.crt/server.crt' does not exist or is empty
[FAILED]

Help?
 
Old 04-29-2005, 12:58 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Code:
mysql>SET PASSWORD FOR ''@'localhost' = PASSWORD('your_new_password_here');
mysql>SET PASSWORD FOR ''@'hostname_or_dnsDomainName' = PASSWORD('its_new_password_here');
For the SSL;
SSL

Getting SSL to work with a "Self Signed Certificate"

1. To allow for SSL connections you must first tell apache to listen to port 443 so add Listen 443 to your /etc/apache2/conf/httpd.conf config or check if that line is already present in /etc/apache2/modules.d/40_mod_ssl.conf.
2. You must also allow for the port 443 VirtualHost so we add NameVirtualHost ip.ad.dr.ess:443 to /etc/apache2/conf/httpd.conf
3. Now edit /etc/apache2/modules.d/41_mod_ssl.default-vhost.conf and change the line <VirtualHost _default_:443> to <VirtualHost *:443>
4. Add -D SSL to APACHE2_OPTS on /etc/conf.d/apache2 as shown above (it would now read APACHE2_OPTS="-D SSL ").
5. All we are missing now is a Certificate, you can easily generate one:
Code:
#cd /etc/apache2/conf/ssl/
#rm server.*
#gentestcrt.sh
This is for apache2 and gentoo should be the same though,good luck
STOLEN FROM GENTOO WIKI
 
Old 04-29-2005, 08:57 PM   #3
opiea
Member
 
Registered: Mar 2004
Location: Ortonville, MI
Distribution: Ubuntu 7.04 Feisty Fawn
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
trying to set up a web server on Fedora 3
I need to know how to generate a ssl certificate. That command is just for Gentoo. I also need to know how to set the root password in MYSQL.
 
Old 04-29-2005, 09:49 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Mysql is the same,for the key a quick google search got this;
http://www.rpatrick.com/tech/makecert/
 
Old 05-01-2005, 09:08 PM   #5
opiea
Member
 
Registered: Mar 2004
Location: Ortonville, MI
Distribution: Ubuntu 7.04 Feisty Fawn
Posts: 30

Original Poster
Rep: Reputation: 15
I switched over to Ubuntu and got everything working but I can't figure out how to set the root password for mysql and how to bind the apache port to 443 instead of 80 (443 becuase buisness and stuff can still get to it without it being port blocked, my internet company doesn't let host on 80 or 21. I am only using that till I can afford hosting lol)
 
Old 05-01-2005, 09:32 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
See if this helps;
http://www.webdevelopersnotes.com/tu..._on_linux.php3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache SSL, and Virtual Server problem Spreegem Debian 2 04-07-2005 05:54 PM
Apache SSL problem , please help John Micheal Linux - Software 2 10-31-2004 01:43 PM
Apache SSL Problem carlg Linux - General 0 10-13-2004 01:02 PM
Problem Starting Apache with SSL -- URGENT kaplan71 Linux - General 0 02-09-2004 08:10 AM
Problem with apache SSL and PHP Donboy Linux - Software 3 10-30-2003 01:08 PM


All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration