Thanks Roverrat, htaccess is another good alternative, but I would like to setup mysql and php so that users can be able to edit and add to the website's webpages.
With .htaccess you can protect files, folders, and webpages in or out the network from being viewed. A log-in prompt will appear asking for user and password info.
I accomplished this by creating and placing two text files (.htaccess & .htpasswd) in the folder I want to protect.
.htaccess file should look like this;
.AuthName "Login to the Private Area"
AuthUserFile /var/www/localhost/the protected file/.htpasswd
Require user stonecuban
I could'nt create an encrypted .htpasswd file by running these two commands in terminal?
htpasswd -cmb .htpasswd user password
htpasswd -c .htpasswd user password
So I went to this link http://users.abac.com/cgi-bin/pass.pl
and typed in a password and in return it gave an encrypted code of my password which I simply pasted alongside my user name followed by a colon in the .htpasswd file.
.htpasswd file should look like this;
Restart server or servers.
Visit your new "login required" protected webpage in or out the network.
But we're talking Lamp here.
I would like to setup mysql and php so that users can be able to edit and add to the website's webpages.
I've gotten as far as my results here.
pardus stonecuban # mysql -u root -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is (xx)
Server version: 5.0.51-log Pardus Linux
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.