LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   php/apache/mysql.... (https://www.linuxquestions.org/questions/programming-9/php-apache-mysql-290515/)

montassarjdidi 02-15-2005 10:02 AM

php/apache/mysql....
 
well i have already installed à linux distribution ..
i want to learn how to check whether php apache and MySQL are properly installed on my system and are running correctly ..
in case of problems what do i need to install them and make them work ?.

Mega Man X 02-15-2005 10:07 AM

If your apache is running and you can hit it with your browser (by either typing http://your_ip_number or http://localhost), write a simple page like this:

PHP Code:

<html>
<head>
<title></title>
</head>

<body>

<?php
phpinfo
();
?>

</body>
</html>

Now, save that page at your Apache root document folder (this changes a lot from one distro to another) and hit it from a browser. PHPINFO command above will show you all the settings of your server. If you see a line with "--with-mysql", so most likely it's working.

LordDark 02-15-2005 05:39 PM

well, I hope so that you need this...

First: check if the package are installed (each one)
rpm -q MySQL-server-4.0.14-0

another way is verify with

setup

and view the service are activate or are installed....

If they are installed only wake up the service

service httpd start
service mysql start

If you don't have installed, download the rpm or the binary code and compile it.

mfrick 02-16-2005 02:37 AM

to check they are running you can try accessing them as above also you can check the processes that are currently running.

ps ax | grep httpd
ps ax | grep mysql

alaateb 02-21-2005 05:38 AM

Hi! I am a newbie.

I am using Suse 8.1 with Apache 1.3, MySQL 3.23 and PHP4 installed via Yast2.

The webserver test page shows, along with other info, that php4 module is installed.

But Konqueror asks to 'save to disk' while opening .php pages.

Any suggestions?

mfrick 02-24-2005 12:52 AM

This is an apache server side problem so you need to tell apache how to handle php files.

add the following to the AddType section of your httpd.conf on your server and restart apache.

Code:

AddType application/x-httpd-php .php

alaateb 04-22-2005 08:08 AM

Thank you. Php is working now.


All times are GMT -5. The time now is 08:15 PM.