LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2004, 04:09 PM   #1
ada601
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Rep: Reputation: 0
Help with apache, mysql, and PHP in mandrake 10 official


I've installed mandrake 10 on my computer and went ahead to install the apache server, mysql, the php mod, and whatever else i recognized. It all works well enough, if i type http://localhost/ into my browser i see the apache page etc. My question is: now what? How can i begin testing my php and mysql scripts. Everything i read has apache installed in some other place than mine i guess. Mine is under /var/.
I don't know what to configure to allow me to start putting files into the www folder I don't have permission unless I am root and if I log into the gui as root I don't have a graphical file browser anyway! I am confused by the whole setup...any suggestions?

Thank you all in advance.
 
Old 06-06-2004, 06:52 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Sounds like you don't need to configure anything. Just start moving your files into the htdocs directory.

This will be the directory listed as the "DocumentRoot" in your apache config file.

Try with regular html files first, then try a php script. If it doesn't work then tell us the errors...
 
Old 06-06-2004, 07:05 PM   #3
ada601
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
The thing I want to know is do i HAVE to be under root to place these files? I'd rather not be.
 
Old 06-06-2004, 07:27 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Ok, what I did, is create a group called web. chown -R your htdocs directory so that all the files group is web, and make sure that group has read/write permissions. Add your regular user to group web, then you can operate on them as your regular user.
 
  


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
About Mandrake 9.2, PHP, MySql and Apache poeta_boy Linux - Newbie 7 04-12-2004 10:28 PM
How do I use Mandrake Distro CDs for Apache, MySQL & PHP? robroto88 Mandriva 17 01-26-2004 11:40 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM
RH/Apache/MySQL/PHP c0c0deuz Linux - Software 8 12-24-2001 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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