LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   local server (https://www.linuxquestions.org/questions/linux-server-73/local-server-922054/)

hosslinux 01-04-2012 02:23 PM

local server
 
hi
i want create some local webserver in my office.
i have install debian 6 and php and apache and mysql and webmin and samba with default config.

1.how can i create one folder and one database for each user?

2.how can i create some link like this http://example.com/username ?

3.how can i create ftp account for each user for upload files?

jhwilliams 01-04-2012 03:04 PM

As for creating one folder per user, these would /home/username, and /home/username/public_html.

Code:

adduser username
mkdir -p /home/username/public_html

As for the databases, look into a web UI like phpmyadmin.

As for the user directories on the webserver, you can create http://example.com/~username by enabling UserDirs.

Code:

sudo a2enmod userdir
sudo service apache restart

Finally, for ftp, just have people use SSH/SCP. Or, if you must, look at VSFTP.

hosslinux 01-05-2012 12:20 AM

thank you,i am try this
if my user have windows,how can i config windows for access to this webserver?

Lexus45 01-05-2012 12:27 AM

Quote:

Originally Posted by hosslinux (Post 4566540)
if my user have windows,how can i config windows for access to this webserver?

Windows doesn't need to be configured to access "shared folders" and HTTP/FTP resources.

When your server will be configured, just type in "Start -> Run" :

\\server's-ip-address\ - to access Samba shared folders

and in your browser (you may also use Start -> Run):

ftp://server's-address/ - to access the server via FTP
http://server's-address/ - to access the server via HTTP.

hosslinux 01-05-2012 12:30 AM

ok,thank you


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