force_flow2002 Posted May 9, 2003 Report Share Posted May 9, 2003 How can I install PHP and MySQL after Mandrake 9.1 has been installed? Quote Link to comment Share on other sites More sharing options...
tyme Posted May 9, 2003 Report Share Posted May 9, 2003 Mandrake Control Center -> Software Manager -> Install Software (or something similar to that) do a search for mysql and php Quote Link to comment Share on other sites More sharing options...
force_flow2002 Posted May 9, 2003 Author Report Share Posted May 9, 2003 I didn't see them listed, but I did a search for them and installed everything. When I went to try to install a forum (a single PHP installation file), it wouldn't run. In the readme, it says the default directory fo PHP is "/usr/local/bin/php". But, there is nothing in the bin folder. :confused: Is there some special way I need to run the php file? Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted May 9, 2003 Report Share Posted May 9, 2003 These are all the php and mysql files I have installed now.. libphp_common430-430-11mdk php-mysql-4.3.0-2mdk apache2-mod_php-2.0.44_4.3.1-2mdk phpMyAdmin-2.4.0-1mdk php-manual-en-4.3.0-2mdk libmysql12-4.0.11a-5mdk What are you trying to install (product) and what is the name of the file? PS you can get a list of packages you have installed.. rpm -qa | grep php rpm -qa | grep mysql Quote Link to comment Share on other sites More sharing options...
johnnyv Posted May 9, 2003 Report Share Posted May 9, 2003 the .php files need to go in you apache root directory somewhere eg /var/www/html/ you have apache installed i assume? Quote Link to comment Share on other sites More sharing options...
force_flow2002 Posted May 9, 2003 Author Report Share Posted May 9, 2003 I'm trying to install Fud forum http://fud.prohost.org/ The name of the file is "Install.PHP" johnnyv, do you mean that the PHP files need to be run from that directory? Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted May 9, 2003 Report Share Posted May 9, 2003 That's right, basically what is happening is that php is a scripting language for browsers. If you put it in that directory and you have your apache server setup, then you can access it with http://localhost/install.php and it will run whatever is in the file. Quote Link to comment Share on other sites More sharing options...
force_flow2002 Posted May 11, 2003 Author Report Share Posted May 11, 2003 I tried copying over the file to the /var/www/html/ directory, but it won't allow me to logged on as myself. Can I log on and administrator or root, or add permisions to my user to allow me to have access to the directory? [edit]: By the way, I did a complete reinstallation of Mandrake 9.1, so all of the packages are installed. ;) Quote Link to comment Share on other sites More sharing options...
johnnyv Posted May 11, 2003 Report Share Posted May 11, 2003 I tried copying over the file to the /var/www/html/ directory, but it won't allow me to logged on as myself. Can I log on and administrator or root, or add permisions to my user to allow me to have access to the directory? [edit]: By the way, I did a complete reinstallation of Mandrake 9.1, so all of the packages are installed. ;) Yes root has write access to that directory, k menu -> applications -> file tools -> file manager - superuser mode get a password prompt enter your root password and you are away. maybe create a directory to put the .php file in, say you call the directory "forum" and the php file is called "forum.php" To access it in you web browser enter in the address bar: http://localhost/forum/forum.php Quote Link to comment Share on other sites More sharing options...
force_flow2002 Posted May 14, 2003 Author Report Share Posted May 14, 2003 That did the trick for moving the file, johnnyv :) Unfortunately, the file is still not recognized. :( Here's the PHP & MySQL files I have installed: PHP: libphp_common430-430-11mdk apache2-mod_php-2.0.44_4.3.1-2mdk MySQL: libmysql12-4.0.11a-5mdk What now? Do I need to activate something? Or do I need to download PHP and MySQL and install them? Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted May 14, 2003 Report Share Posted May 14, 2003 Download AboutPHP.php and put it in your /var/www/html folder. Then chmod 755 the file so you can execute it. Try to view it with http://localhost/AboutPHP.php Should either work or not. If not, your Apache configuration file is not setup correctly. Some other things to play with.. 1. Install webmin. Go to webmin's website and get the targz file and do the install. 2. Make sure your /etc/hosts file is setup correctly. Got a localhost entry? 3. Try this tutorial... Other than that, I'm going to follow my own advice because while I have apache working with php, I do not have phpbb working.. Quote Link to comment Share on other sites More sharing options...
scoopy Posted May 17, 2003 Report Share Posted May 17, 2003 I didn't see the main MySQL or PHP files listed as installed, so I thought we should check if these are installed or not? (Notice difference between MySQL and mysql) Here's my list of packages I installed to get a php-nuke site working: [scoopy@localhost scoopy]$ rpm -qa | grep MySQL MySQL-4.0.11a-5mdk MySQL-common-4.0.11a-5mdk MySQL-client-4.0.11a-5mdk [scoopy@localhost scoopy]$ rpm -qa | grep mysql libmysql12-4.0.11a-5mdk apache2-mod_auth_mysql-2.0.44_1.11-2mdk php-mysql-4.3.0-2mdk [scoopy@localhost scoopy]$ rpm -qa | grep php php-ini-4.3.0-1mdk php-pear-4.3.0-3mdk php-cli-4.3.1-11mdk apache2-mod_php-2.0.44_4.3.1-2mdk php-xmlrpc-4.3.0-2mdk libphp_common430-430-11mdk php-mysql-4.3.0-2mdk php-xml-4.3.0-2mdk I may have a few extra "php" files there, but I am thinking the php-ini package may be one you may need (and to set up). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.