LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-02-2005, 01:39 PM   #1
tux66
LQ Newbie
 
Registered: May 2005
Posts: 21

Rep: Reputation: 15
configure apache


I use slack10.1. And I want put a web page in apache. The problem It's that I don't know how can I'm do that.
Who can help me?
 
Old 05-02-2005, 01:41 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
First is apache running? Check this by browsing: http://127.0.0.1
If it's, the root directory of web pages is by default /var/www/htdocs/ (by default there are apache demo files there, the manual, etc, you can delete them safe).
 
Old 05-02-2005, 01:46 PM   #3
tux66
LQ Newbie
 
Registered: May 2005
Posts: 21

Original Poster
Rep: Reputation: 15
no apache it's not running.
and I don't see rc.apache ind rc.d
 
Old 05-02-2005, 01:52 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
run " rc.httpd "

egag
 
Old 05-02-2005, 01:53 PM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
The startup script for Apache is /etc/rc.d/rc.httpd
 
Old 05-02-2005, 01:58 PM   #6
tux66
LQ Newbie
 
Registered: May 2005
Posts: 21

Original Poster
Rep: Reputation: 15
now apache is running in my computer. what's the directory here I put my files?
 
Old 05-02-2005, 02:05 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to make /etc/rc.d/rc.httpd executable. If you are testing web pages you could create a directoy called public_html in your home directory, give it 755 permissions and make sure your /etc/apache/httpd.conf has the userdir option uncommented. To access your pages in the home directory you can then do something like http://localhost/~username/file.html .
 
Old 05-02-2005, 02:15 PM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
http://www.linuxquestions.org/questi...=slackware+amp

Bon Apetite
 
Old 05-02-2005, 02:56 PM   #9
tux66
LQ Newbie
 
Registered: May 2005
Posts: 21

Original Poster
Rep: Reputation: 15
I thought that there was I directory in apache to put my files...
 
Old 05-02-2005, 03:07 PM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You can put them in the main server document root which is /var/www/htdocs or in your home directory. When I am developing websites I use my home directory for storing the web pages whilst I am testing them.
 
Old 05-02-2005, 03:40 PM   #11
tux66
LQ Newbie
 
Registered: May 2005
Posts: 21

Original Poster
Rep: Reputation: 15
I think that mine /etc/apache/httpd.conf is not correctly configured
 
Old 05-02-2005, 03:49 PM   #12
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
On a slightly related note, what's the easiest way to convince Apache to send *every* page as UTF-8?

I tried the AddDefaultCharset utf-8 option in httpd.conf, but it didn't do anything. I would really like to be able to just type in the foreign language, rather than needing to also remember to save each page as ".html.utf8". And with extensive php scripting going on, that becomes impossible.
 
  


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
Configure Apache Megasms Programming 3 11-04-2005 05:36 AM
Trying to configure apache partyk1d24 Linux - Newbie 7 06-24-2005 03:16 AM
how to configure apache Roll Linux - Software 1 03-06-2005 11:14 AM
Configure Apache esasse Linux - Newbie 2 12-02-2004 02:51 PM
cant configure apache dave bean Slackware 8 02-23-2004 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:16 AM.

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