Novice needs help installing PHP on second computer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dell 4500, mem 1g, hd 45g, mhz 2g, Mysql-3.23.54a-linux-i686, PHP-4.30,
httpd_2.0.44

The notes "script" that I used on my Dell 4100 mem 250mb, hd 12g, mhz 800,
Mysql-3.23.54a-linux-i686, PHP-4.30, httpd_2.0.44, should in theory work on
my
Dell 4500. Both computers are stand alone systems.
****************************************************************
Dell 4100:
Mozilla displays the work of one php class, three extended php classes and
the processing of five php scripts correctly. This is about 1200 lines
of php code are working.

****************************************************************
Dell 4500:
 I can manipulate the mysql tables, "SELECT", "SHOW" "LOAD" etc.

 I can  get Mozilla to display "http://127.0.0.1/php_test.html";,
 but not "http://127.0.0.1/stuff.php"; which contains "phpinfo()"
 or "http://127.0.0.1/php_test.php";.

Any hints, help, or documentation would be appreciated.
Thanks
Ed Anderson
dander@bestweb.net


****************************************************************
The notes I used for both computers follows:
#
# installed using root -
#    apache package is in file:/usr/local/httpd-2.0.44.tar.gz
#    php package is in file:/usr/local/php-4.3.0.tar.gz
#  1. If successful, install, as root: Download/unpack
#     Apache2 source from the Apache httpd server website.
#
cd /usr/local/
#
gunzip -dv httpd-2.0.44.tar.gz | tar xvf -
#
tar -xvf httpd-2.0.44.tar
#
#  2. In the Apache 2 source directory, type:
#
cd /usr/local/httpd-2.0.44
#
./configure --prefix=/usr/local/httpd\
        --enable-so     \
        --enable-cgi    \
        --enable-info   \
        --enable-rewrite        \
        --enable-speling        \
        --enable-usertrack      \
        --enable-deflate \
        --enable-ssl    \
        --enable-mime-magic
#
make
#
#  3. install
#
make install
#
#  4. Download/unpack PHP source from the PHP website
#     Pick one from the 4.3.x series (see note above).
#
cd /usr/local/
#
#   Unzip this file with a command like: gunzip php-4.x.y.tar.gz
#
gunzip  php-4.3.0.tar.gz
#
#   Next you have to untar it with: tar -xvf php-4.x.y.tar
#
tar xvf php-4.3.0.tar
#
#   This will create a php-4.x.y directory.  cd into this new directory.
#
cd /usr/local/php-4.3.0
#
#  5. In the php source directory, type:
#
./configure \
        --with-apxs2=/usr/local/httpd/bin/apxs \
        --with-mysql=/usr/local/mysql\
        --prefix=/usr/local/php \
        --with-config-file-path=/usr/local/php \
        --enable-track-vars \
        --enable-force-cgi-redirect \
        --enable-debugger\
        --enable-magic-quotes\
        --disable-cgi \
        --with-zlib \
        --with-gettext \
        --with-gdbm
#
#  6.
#
make
#
make install
#
#  7. If file /usr/local/httpd/modules/libphp4.so
#     does not exist or is an older version, type this:
#
cp -p .libs/libphp4.so /usr/local/httpd/modules
#
#  8. Install the php.ini file:
#
cp -p php.ini-recommended /usr/local/php/php.ini
#
# make changes to
   #   #    #    #
#/usr/local/httpd/conf/httpd.conf:
#/usr/local/httpd/conf/httpd.conf:
#/usr/local/httpd/conf/httpd.conf:

#  9. Verify (and add if missing) these directives
#     in /usr/local/httpd/conf/httpd.conf:
# Make sure there's only **1** line with this directive:
LoadModule php4_module        modules/libphp4.so
#

# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php
#
AddType application/x-httpd-php php
<Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
</Files>
#
# PHP Syntax Coloring (recommended):
AddType application/x-httpd-php-source phps
<Files *.phps>
        SetOutputFilter PHP
        SetInputFilter PHP
</Files>
#
#



****************************************************************

[root@localhost php-4.3.0]# /usr/local/httpd/bin/apachectl start
note: ps -ef indicates httpd is up and running...........
[root@localhost php-4.3.0]# cd /usr/local/mysql
[root@localhost mysql]# ./bin/safe_mysqld --user=mysql &
[1] 23159
[root@localhost mysql]# Starting mysqld daemon with databases from
/usr/local/mysql/data
[root@localhost mysql]# ./bin/mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 3.23.54

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> USE mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql>


****************************************************************

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux