Page 1 of 1

How to create a pre-installation guide

Posted: Wed Mar 19, 2008 8:36 pm
by it2051229
Recently i've been experimenting creating a content management system using PHP and I have to do this installation part where the user enters the Mysql Username and password. I can't find a way on how do i validate the mysql username and password before the user continues to fill up other required fields on the next page. Any existing code you have that i might re-use or modify? oh and also can you give me tips on how do i get the current version of mysql, php, and apache using PHP code (except phpinfo() cause i want specific attributes to be displayed on the installation page)

Re: How to create a pre-installation guide

Posted: Wed Mar 19, 2008 8:57 pm
by ashebrian
I don't understand ur question....u having problems with setting up ur php, mysql and apache? and ur unable to get everything workin together. Easy option is download WAMP http://www.wampserver.com/en/. Stands for Windows Apache Mysql and PHP. or download LAMP for unix. That usually has everything workin in mins so u only have to add ur prog codes.

Re: How to create a pre-installation guide

Posted: Thu Mar 20, 2008 7:41 pm
by it2051229
uhmmmm ok just to give you an example, one of the most popular CMS made in PHP is JOOMLA, and after extracting the JOOMLA contents into the 'www' directory of the WAMP you have to open the browser and then visit the 'localhost' and then a page of pre-installation of database and administrator username and password is shown (which i wanted and have been trying to do). I've been doing testing in JOOMLA that if you purposely enter an invalid mysql username and password, the error is catched and is shown to the user which i cannot do and have been doing an if-else statements and it doesn't work. And JOOMLA too has this feature that displays the current version of your php and mysql and is able to check whether certain features of PHP is enabled or disabled like the GD Library or the ZIP features and others. hope you get my point. thanks for replying

Re: How to create a pre-installation guide

Posted: Thu Mar 20, 2008 8:32 pm
by ashebrian
it2051229 wrote:uhmmmm ok just to give you an example, one of the most popular CMS made in PHP is JOOMLA, and after extracting the JOOMLA contents into the 'www' directory of the WAMP you have to open the browser and then visit the 'localhost' and then a page of pre-installation of database and administrator username and password is shown (which i wanted and have been trying to do). I've been doing testing in JOOMLA that if you purposely enter an invalid mysql username and password, the error is catched and is shown to the user which i cannot do and have been doing an if-else statements and it doesn't work. And JOOMLA too has this feature that displays the current version of your php and mysql and is able to check whether certain features of PHP is enabled or disabled like the GD Library or the ZIP features and others. hope you get my point. thanks for replying
ok.....i'm a bit confused. U can't access ur db? us phpMyAdmin on the on ur browser http://localhost/phpmyadmin/. ere u click on Privileges and change ur password for user root if you didn't change it already. then go to ur .php for connections online to ur db e.g db.php file where all ur web files are "NOT WAMPs" files. Once u find it, change ur server name to localhost, user to "root" or whatever u have in phpMyAdmin, and password. there you'll be able to work away.

i believe de default username and passwords are both "root", if i'm not wrong.

Re: How to create a pre-installation guide

Posted: Fri Mar 21, 2008 12:16 am
by it2051229
yeah i know that.. i know how to configure everything on WAMP and you still dont get MY POINT... go download JOOMLA or WORD PRESS and see how to install them and and maybe you'll get my point.