Jump to content

How can I install PHP and MySQL?


Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...