Solved

Linux Slackware - Configuring PHP

Posted on 2003-10-27
7
468 Views
Last Modified: 2013-12-05
Hi

Can anyone give me a proper and reliable documentation/site that can guide step by step
to configure PHP in Linux Slackware for Web hosting purposes ?


Cheers
0
Comment
Question by:ilovekeat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9632183
Have a check here http://www.brtnet.org/linux/lamp.htm which is how to setup the LAMP (Linux, Apache, MySQL and PHP4) in both RPM and tarballs
0
 

Expert Comment

by:peterhav
ID: 9642441
Hello ilovekeat,

Yes! I definetly know a good site about PHP, You should look on www.zend.com, this is a site with lots of informations about PHP under Linux (but also under other os'es

Greetings,
Peter
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9648022
The procedure to install Apache + PHP4/MySQL

    Apache + PHP4/MySQL
    -------------------------

    Prerequisites:

    o Apache should be installed to /path/to/apache
    o MySQL is installed under /path/to/mysql
    o GNU Make is available as `gmake' in $PATH

    Steps:

    #   extract the packages
    $ gzip -d -c apache_1.3.x.tar.gz | tar xvf -
    $ gzip -d -c php-4.0.x.tar.gz | tar xvf -

    # install MySQL
     $ groupadd mysql
     $ useradd -g mysql mysql
     $ cd /usr/local
     $ gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
     $ ln -s full-path-to-mysql-VERSION-OS mysql
     $ cd mysql
     $ scripts/mysql_install_db
     $ chown -R root  .
     $ chown -R mysql data
     $ chgrp -R mysql .
     $ bin/mysqld_safe --user=mysql &

    #   pre-configure Apache for PHP's configure step
    $ cd apache_1.3.x
    $ ./configure \
          --prefix=/path/to/apache
    $ cd ..

    #   configure PHP and apply it to the Apache source tree
    $ cd ../php-4.0.x
      ./configure \
          --with-apache=../apache_1.3.x \
          --with-mysql=/usr/local/mysql \
          --enable-memory-limit=yes \
          --enable-debug=no
    $ gmake
    $ gmake install
    $ cd ..

    #   build/install Apache with PHP
    $ cd apache_1.3.x
      ./configure \
          --prefix=/path/to/apache \
          --activate-module=src/modules/php4/libphp4.a \
          --enable-module=php4
    $ make
    $ make install
    $ cd ..

    #   cleanup after work
    $ rm -rf php-4.0.x
    $ rm -rf apache_1.3.x

After this you have apache + php + mysql :)
0
 

Accepted Solution

by:
AlanBell earned 250 total points
ID: 9648831
Slackware comes with PHP ready to go (as long as you installed the packages), to switch it on, edit /etc/apache/httpd.conf :

# By default, all external Apache modules are disabled.

<SNIP>

# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED:  openssl-solibs (A series) and/or openssl (N series),
#                     mysql (AP series), gmp (L series), and apache (N series)
#
#Include /etc/apache/mod_php.conf

Uncomment the line #Include /etc/apache/mod_php.conf and restart apache.

Alan.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10242181
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by AlanBell
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question