Jump to content


Manage Apache with PHP

  • Please log in to reply
2 replies to this topic

#1 tommy117

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 27 August 2006 - 03:53 PM


I'd like to know how to create an Apache user-account with PHP (the idea was to create a folder and a user-account with rights on that folder so that a user (who registered on a PHP page) could use ftp to upload files to the server).

Also, is it possible to make a folder on Apache so that it could be accessed only by the owner and from the web (and by root)?

#2 oldmanice

  • Members
  • PipPipPip
  • Advanced Member
  • 134 posts
  • LocationIn Your Garden At Night

Posted 04 September 2006 - 09:35 PM

No you dont need to make a account with apache all you do is download it and start making your folders. And yes there is a way by only accessing it on your own machine and thats by typing in http://localhost.
Join my Froums www.phpbbplanet.com/darkwinter

#3 R_P

  • Members
  • PipPipPip
  • Advanced Member
  • 98 posts

Posted 05 September 2006 - 03:10 PM

In order to do this, you'll need to find ways to:

-Have PHP edit the httpd.config to add virtual hosts, directories and aliases for each user.
-Install an FTP service that can be access from the command line (batch file FTP).
-It sounds like you will need to use exec() to have PHP run processes on the command line for interfacing.

In this situation, it would be more practical to use .htaccess files to control access to directories which would be relatively simple.

All in all, this is too complex of a project to step-by-step here and will require a lot of workflow planning. Sounds like your essentially trying to set up a hosting business. If you can't find a command line FTP server (I have none to recommend) you can do a Geocities-like file manager with file uploads, but that is a whole other can of worms. Take a look at the bullets, see if this is practical for you.

Good luck.
Pro in: Win2K3S | Apache2 | PHP5 | Perl5 | MySQL | MSSQL | Firefox | Photoshop
Student of: Ubuntu6 | Java | C | VB.NET | ASP.NET
Developer: Roddzilla Webstudios, Burrson CG, DVIDSHUB, The Four Nations
Student: Georgia Tech, Georgia Tech College of Computing

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users