LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-22-2013, 12:59 PM   #1
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Rep: Reputation: 49
web development environment


Now and again I like to write a few web pages and I'd like to set up a development environment so I can test before I upload to my VPS.

Last time I set up a that I was using Debian and was able to follow a Debian specific guide that included use of a2ensite, which seems to be Debian specific. Does anyone know how to replicate a2ensite's effects manually? I've not found a .deb package else I could maybe just use Pat's utility.

Thanks for any help!
 
Old 05-22-2013, 01:05 PM   #2
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,569

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
Just edit /etc/httpd/httpd.conf manually.
 
1 members found this post helpful.
Old 05-22-2013, 03:03 PM   #3
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,502

Rep: Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695
No a2ensite with Slackware. Just edit /etc/httpd/extra/httpd-vhosts.conf. Here's what this file looks like on a public server, to get a rough idea.

Code:
# caviste-gard.fr
<VirtualHost *:80>
    ServerAdmin info@microlinux.fr
    DocumentRoot "/srv/httpd/vhosts/caviste-gard/htdocs"
    ServerName caviste-gard.fr
    ServerAlias www.caviste-gard.fr
    ErrorLog "/var/log/httpd/caviste-gard.fr-error_log"
    CustomLog "/var/log/httpd/caviste-gard.fr-access_log" common
</VirtualHost>

# osteo-montpellier.net
<VirtualHost *:80>
    ServerAdmin info@microlinux.fr
    DocumentRoot "/srv/httpd/vhosts/osteo-montpellier/htdocs"
    ServerName osteo-montpellier.net
    ServerAlias www.osteo-montpellier.net
    ErrorLog "/var/log/httpd/osteo-montpellier.net-error_log"
    CustomLog "/var/log/httpd/osteo-montpellier.net-access_log" common
</VirtualHost>

# osteo-sommieres.fr
<VirtualHost *:80>
    ServerAdmin info@microlinux.fr
    DocumentRoot "/srv/httpd/vhosts/osteo-sommieres/htdocs"
    ServerName osteo-sommieres.fr
    ServerAlias www.osteo-sommieres.fr
    ErrorLog "/var/log/httpd/osteo-sommieres.fr-error_log"
    CustomLog "/var/log/httpd/osteo-sommieres.fr-access_log" common
</VirtualHost>

# radionovak.com
<VirtualHost *:80>
    ServerAdmin info@microlinux.fr
    DocumentRoot "/srv/httpd/vhosts/radionovak/htdocs"
    ServerName radionovak.com
    ServerAlias www.radionovak.com
    ErrorLog "/var/log/httpd/radionovak.com-error_log"
    CustomLog "/var/log/httpd/radionovak.com-access_log" common
</VirtualHost>

# sd-25854.dedibox.fr
<VirtualHost *:80>
    ServerAdmin info@microlinux.fr
    DocumentRoot "/srv/httpd/vhosts/default/htdocs"
    ServerName sd-25854.dedibox.fr
    ServerAlias sd-25854
    ErrorLog "/var/log/httpd/sd-25854.dedibox.fr-error_log"
    CustomLog "/var/log/httpd/sd-25854.dedibox.fr-access_log" common
</VirtualHost>
Don't forget to activate the VHosts module in httpd.conf.
 
1 members found this post helpful.
Old 05-22-2013, 03:44 PM   #4
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Original Poster
Rep: Reputation: 49
Thanks chaps.

I'll post back should I encounter any problems.
 
Old 05-24-2013, 03:19 AM   #5
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,502

Rep: Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695
I've written a step by step HOWTO on the subject of setting up a LAMP server on Slackware, complete with configuring virtual hosts for multiple websites.

http://www.microlinux.fr/howtos/LAMP-HOWTO.txt

Here's the MySQL-HOWTO that goes with it.

http://www.microlinux.fr/howtos/MySQL-HOWTO.txt
 
1 members found this post helpful.
Old 05-24-2013, 05:28 AM   #6
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by kikinovak View Post
I've written a step by step HOWTO on the subject of setting up a LAMP server on Slackware, complete with configuring virtual hosts for multiple websites.

http://www.microlinux.fr/howtos/LAMP-HOWTO.txt

Here's the MySQL-HOWTO that goes with it.

http://www.microlinux.fr/howtos/MySQL-HOWTO.txt
Excellent, thanks.
 
Old 05-26-2013, 04:52 AM   #7
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by kikinovak View Post
I've written a step by step HOWTO on the subject of setting up a LAMP server on Slackware, complete with configuring virtual hosts for multiple websites.

http://www.microlinux.fr/howtos/LAMP-HOWTO.txt

Here's the MySQL-HOWTO that goes with it.

http://www.microlinux.fr/howtos/MySQL-HOWTO.txt
I liked your guide (not looked at the MySQL yet) and I found the Slackdocs guide lacking - it needs fleshing out - so I might translate your guide into English when I get the chance and put that up in addition to what is already there.
 
  


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
Web Development Environment Setup tuttle425 Linux - Server 2 02-12-2013 04:43 AM
tips for a nice web-development environment? indeliblestamp Linux - General 3 08-17-2007 06:24 AM
Development environment for database based web service Spenny Programming 3 10-26-2005 09:22 AM
Web and Video Development Environment, Network Setup even? parasbshah Linux - Newbie 4 10-03-2005 03:30 AM


All times are GMT -5. The time now is 03:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration