LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-03-2005, 12:59 AM   #1
MacMurphy
LQ Newbie
 
Registered: Dec 2004
Location: Australia
Posts: 11

Rep: Reputation: 0
PHP Tutorial


I am new to Linux in general and have a Slackware 10 full installation.
I am trying to follow a php tutorial at:
http://au.php.net/manual/en/tutorial.firstpage.php

It says to save the file created in the web server's root directory, can someone clarify exactly for me where this means ?

Is it /var/www/htdocs ?

Thanks

Murphy
 
Old 01-03-2005, 03:49 AM   #2
MacMurphy
LQ Newbie
 
Registered: Dec 2004
Location: Australia
Posts: 11

Original Poster
Rep: Reputation: 0
Solved.

See http://shilo.is-a-geek.com/slack/intro0.html

This guy deserves a medal for his excellent work here

Thanks

MacMurphy
 
Old 01-03-2005, 04:52 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
For Slackware it is indeed /var/www/htdocs, but I configured my webserver so that when I am developing websites, I can just save my documents in my home directory instead of the root directory. All you need to do is configure the apache server to allow users to point to ~/public_html. I use webmin to administer my system, so everything is done centrally.
 
Old 01-03-2005, 11:08 AM   #4
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
Quote:
Originally posted by reddazz
For Slackware it is indeed /var/www/htdocs, but I configured my webserver so that when I am developing websites, I can just save my documents in my home directory instead of the root directory. All you need to do is configure the apache server to allow users to point to ~/public_html. I use webmin to administer my system, so everything is done centrally.
As configuring the webserver can be tricky, if you do not know what you are doing, you can just link a directory in ~ to the server root.:
Code:
mkdir ~/www
su
rm -rf /var/www/htdocs
ln -s /home/foo/www /var/www/htdocs
cccc828
 
  


Reply



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
PHP-Mysql Tutorial for beginner/dummies ewinandar Programming 1 11-10-2004 02:10 AM
PHP tutorial in acrobat reader theewolizer Programming 1 11-07-2004 01:53 PM
PHP tutorial sites Rift Worm Programming 3 01-26-2003 04:03 PM
Installation Tutorial Apache 2, PHP 4, MySQL 3.23 freddymio Programming 2 07-03-2002 09:40 AM
How about a weekly tutorial? or just a tutorial Alinuxnoob LQ Suggestions & Feedback 2 04-09-2002 08:30 PM

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

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration