Problem with configuring php on Slackware 10.2
Running the following:
-Slackware 10.2 -2.4 Kernel -MySQL 4.1.14 -Apache 1.3.34 -PHP 4.4.2 I've got MySQL (can log in and create databases) and Apache up (can get the test page 127.0.0.1) and running and I've used this thread http://www.linuxquestions.org/linux/..._MySQL_and_PHP And I've done the following: Code:
configure php Code:
<?php phpinfo(); ?> What am I doing wrong here...? thanks |
Quote:
Tux, |
Check
1. DirectoryIndex under httpd.conf (may not have index.php) 2. AddType may be missing |
Quote:
Code:
thanks |
Quote:
httpd.conf shows the following: Code:
# DirectoryIndex: Name of the file or files to use as a pre-written HTML Quote:
thanks |
Code:
# PHPModule |
Quote:
Hmmm... I've added this to the AddTypes in httpd.conf and restart Apache and still no luck... |
Does the code should be
Code:
<?php |
Quote:
|
try running the test script from the command line to see if PHP gives back an error
Code:
linux$ php test.php |
Quote:
I have the following two files -test.php -phpinfo.php Code:
cmmiller@probot:~/php$ php test.php Code:
cmmiller@probot:~/php$ php phpinfo.php Now, this is the output that I should see from a webbrowser if I click on this file, but I don't...But the test based output worked. |
It seems that the PHP is OK, but the Apache's configuration which is NOT OK. Perhaps the file path that should be reviewed agains, since the local php check is running well
|
Quote:
How can I troubleshoot Apache's config for this? |
here's what i added in my httpd.conf :
Code:
LoadModule php4_module libexec/apache/libphp4.so Code:
AddModule mod_php4.c Code:
AddType application/x-httpd-php .php .phtml restart your Apache and see if it works as an addition, i'll give my configuration parameter just in case you will try to compile from the source, instead of using the binary packages './configure' '--prefix=/usr/local' '--enable-discard-path' '--disable-force-cgi-redirect' '--enable-shared' '--disable-static' '--disable-debug' '--disable-rpath' '--enable-pic' '--enable-inline-optimization' '--enable-memory-limit' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--with-exec-dir=/usr/bin' '--with-versioning' '--with-mod_charset' '--with-regex=php' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--enable-ctype' '--enable-ftp' '--with-gettext=/usr' '--enable-posix' '--enable-session' '--enable-sysvsem' '--enable-sysvshm' '--with-openssl=/usr' '--without-kerberos' '--with-ttf' '--with-freetype-dir=/usr' '--with-zlib=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-png-dir' '--with-jpeg-dir' '--with-zlib-dir' '--with-tiff-dir' '--enable-xslt' '--with-xslt-sablot' '--with-iconv-dir=/usr/local/lib' '--with-curl' '--with-mysql-sock=/var/run/mysql/mysql.sock' '--with-mysql=/usr' '--enable-mbstring=all' |
Quote:
I added all of the lines as recommended as above. When I restart apachectl, I get this output Code:
root@probot:/usr/sbin# ./apachectl start |
All times are GMT -5. The time now is 04:40 AM. |