Manage Apache with PHP
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)?
Posted 04 September 2006 - 09:35 PM
Posted 05 September 2006 - 03:10 PM
-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.
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