Re: Install Problems on Fedora 3
| From: | Michael W. | Date: | Sat, 09 Apr 2005 15:22:06 +0000 |
| Subject: | Re: Install Problems on Fedora 3 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-15945@lists.php.net to get a copy of this message | ||
Did you configure Apache to use PHP? (Done by adding "
LoadModule php5_module libexec/libphp5.so"
and "AddType application/x-httpd-php .php .phtml"
and usually "AddType application/x-httpd-php-source .phps"
to httpd.conf).
You also have to tell PHP to make an Apache shared file by adding this to configure:
(For Apache 1.x:)"--with-apxs=/path/to/apache/bin/apxs" or
(For Apache 2.x:)"--with-apxs2=/path/to/apache/bin/apxs".
Mark Sargent wrote:
Hi All, I did a source install, of which I'm a newb at, and then created a index.php file containing the following, <?php phpinfo(); ?> but, that shows in the browser, Firefox, when typing localhost/index.php. I've confirmed that httpd is running, and generates pages as I got the Apache welcome page b4 creating the index.php page. I'm swaying towards that I may have compiled the source wrongly, like leaving something out. Happy to post whatever is needed to help you help me here. Cheers. Mark Sargent. [root@localhost php-5.0.3]# ./configure --with-mysql=/usr/local/mysql too much to post..... [root@localhost php-5.0.3]# make installInstalling PHP SAPI module: cgiInstalling PHP CGI into: /usr/local/bin/Installing PEAR environment: /usr/local/lib/php/ [PEAR] Archive_Tar - installed: 1.1[PEAR] Console_Getopt - installed: 1.2[PEAR] PEAR - installed: 1.3.3Wrote PEAR system config file at: /usr/local/etc/pear.conf You may want to add: /usr/local/lib/php to your php.ini include_path[PEAR] XML_RPC - installed: 1.1.0 Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/program: phpize program: php-config program: phpextdist [root@localhost php-5.0.3]# service httpd restartStopping httpd: [ OK ] Starting httpd: [ OK ].