LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2004, 12:19 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
PHP and MySQL for web design - installing and further


I want to get into web design, so I am going to learn some PHP and mySQL. Although, how do I install it under debian? I cannot find many guides. I do not want to run my own server though so I suppose I have to find one that supports these. So basically, how do I get started with PHP and MySQL for web design?
 
Old 06-24-2004, 02:10 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi!

I use Apache, MySQL and PHP for web development like you want to. To get started with it try the following.
(BTW - I use RedHat)

1. Download PHP. Go for a "source" package.
2. Download MySQL. Go for a "binary" package (IMHO).
3. Download Apache (source).
4. Compile PHP and Apache. This is done by ungziptarring each package, then doing

./configure
make
su
(log in as root)
make install
exit

(I am assuming you know how to untar / ungzip - just do tar zxvf package.name.version on the download file)

Oh yeah, I found that I needed to add the following after ./configure to get things to work on my system:

Apache configure line:
./configure --enable-so --enable-mods-shared=/usr/local/apache2/modules/libphp4.so

PHP configure line:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-apache2

Add these to httpd.conf in apache directory /usr/local/apache2/conf/httpd.conf

LoadModule php4_module /usr/local/apache2/modules/libphp4.so

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

The order of installing / compiling is

1. Install MySQL
2. Install Apache
3. Install PHP

Now start apache (/usr/local/apache2/bin/apachectl start) and try surfing to 127.0.0.1 in a webbrowser. You should see the apache vanilla greeting page.

That should get you started!

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux for Graphic Design, web design, and publishing maelstrom209 Linux - Software 8 07-17-2011 11:35 AM
Web Design Software for interfacing to MySQL on Linux with APACHE John Tulodziecki Linux - General 5 09-06-2005 12:06 AM
Dreamweaver, PHP, MySQL, and Apache Web server bentman78 Linux - Software 18 02-06-2005 05:09 AM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
Installing PHP and MySQL w/ Apache web server dcrealm47 Linux - Newbie 5 02-26-2003 11:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration