How to create a pre-installation guide

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

How to create a pre-installation guide

Post 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)
ashebrian
Forum Contributor
Posts: 103
Joined: Sat Feb 02, 2008 8:01 pm

Re: How to create a pre-installation guide

Post 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.
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: How to create a pre-installation guide

Post 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
ashebrian
Forum Contributor
Posts: 103
Joined: Sat Feb 02, 2008 8:01 pm

Re: How to create a pre-installation guide

Post 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.
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: How to create a pre-installation guide

Post 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.
Post Reply