LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   web development environment (http://www.linuxquestions.org/questions/slackware-14/web-development-environment-4175463038/)

Bazzaah 05-22-2013 12:59 PM

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!

dugan 05-22-2013 01:05 PM

Just edit /etc/httpd/httpd.conf manually.

kikinovak 05-22-2013 03:03 PM

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.

Bazzaah 05-22-2013 03:44 PM

Thanks chaps.

I'll post back should I encounter any problems.

kikinovak 05-24-2013 03:19 AM

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

Bazzaah 05-24-2013 05:28 AM

Quote:

Originally Posted by kikinovak (Post 4957875)
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.

Bazzaah 05-26-2013 04:52 AM

Quote:

Originally Posted by kikinovak (Post 4957875)
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.


All times are GMT -5. The time now is 09:10 PM.