Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Apache + PHP On Debian
PostPosted: Fri Jun 03, 2005 10:23 am 
Offline
Newbie

Joined: Fri Jun 03, 2005 10:21 am
Posts: 3
Hi, i could use some help trying to setup php support on my debian box. Examples of what i mean can be found at http://67.18.92.39/phpsysinfo/ or http://67.18.92.39/lol.php .

Thanks


Top
   
 Post subject:
PostPosted: Fri Jun 03, 2005 3:45 pm 
Offline
Junior Member

Joined: Fri Mar 18, 2005 11:04 pm
Posts: 32
AOL: surferdude18213
Location: the ssh window
Your going to have to download php at php.net and configure apache via httpd.conf to enable php. If you want to save some time, deploy the Red Hat 9 Large image and just start apache with:

Quote:
service httpd start


PHP and MySQL are configured by default.

_________________
-- Surferdude


Top
   
PostPosted: Fri Jun 03, 2005 3:48 pm 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
Husam wrote:
Hi, i could use some help trying to setup php support on my debian box. Examples of what i mean can be found at http://67.18.92.39/phpsysinfo/ or http://67.18.92.39/lol.php .

Thanks


apt-get install php
apt-get install php-mysql
apt-get install libapachephp (or something like that)

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Fri Jun 03, 2005 6:09 pm 
Offline
Newbie

Joined: Fri Jun 03, 2005 10:21 am
Posts: 3
I had done all that prior to my first post, and I would rather not switch to red hat for such a small thing.


Top
   
 Post subject:
PostPosted: Sat Jun 04, 2005 4:55 am 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
If you have already compiled/installed PHP and Apache from their web sites, I suggest you remove them before doing this.
This command should fix everything:
Code:
apt-get update
apt-get install php4 php4-mysql apache

It should ask you if you want to add the PHP module to the apache configuration, if NOT add the following to /etc/apache/httpd.conf:
Code:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

You have to remember that Apache on Debian won't start until a hostname is set:
Code:
echo youthostname > /etc/hostname
/bin/hostname -F /etc/hostname

Then reboot the server and evrything should work.


Top
   
 Post subject: xampp?
PostPosted: Sat Jun 04, 2005 11:31 pm 
Offline
Senior Newbie

Joined: Tue Jun 01, 2004 6:32 am
Posts: 18
have u looked at xampp? easy to install and admin.
http://www.apachefriends.org/en/xampp-linux.html
just follow the steps and take note of security procedure at the bottom of the pg.

maven


Top
   
 Post subject:
PostPosted: Sun Jun 05, 2005 2:24 am 
Offline
Newbie

Joined: Fri Jun 03, 2005 10:21 am
Posts: 3
maven - thanks, that helped a ton.


Top
   
 Post subject:
PostPosted: Sun Jun 05, 2005 5:07 pm 
Offline
Junior Member

Joined: Sat May 07, 2005 3:45 am
Posts: 35
Yahoo Messenger: funksolution
Location: DFW Texas
Perhaps this is a dumb question, but ain't php up to version 5? Or is it that the Debian binaries are only @ 4? Or is there something bad about version 5? I'm running 5.0.4, so I'm kinda curious :)

EDIT: the post that makes reference to php4 also refers to Apache 1. My bad ;)

-Brian


Top
   
 Post subject:
PostPosted: Mon Jun 06, 2005 8:18 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
absolutefunk wrote:
Perhaps this is a dumb question, but ain't php up to version 5? Or is it that the Debian binaries are only @ 4? Or is there something bad about version 5? I'm running 5.0.4, so I'm kinda curious :)


I don't know of any popular distros that are installing PHP5 by default now instead of 4. Given there are PHP5 packages for all said distros, but a lot of scripts haven't been tested against PHP5, and it's not really considered a stable move yet.


Top
   
 Post subject:
PostPosted: Mon Jun 06, 2005 8:27 pm 
Offline
Junior Member

Joined: Fri Mar 18, 2005 11:04 pm
Posts: 32
AOL: surferdude18213
Location: the ssh window
absolutefunk wrote:
Perhaps this is a dumb question, but ain't php up to version 5? Or is it that the Debian binaries are only @ 4? Or is there something bad about version 5? I'm running 5.0.4, so I'm kinda curious :)

EDIT: the post that makes reference to php4 also refers to Apache 1. My bad ;)

-Brian


PHP 5 uses a slightly diffrent syntax for OOP, which affects many scripts such as phpbb, IPB, vB etc. Because of that, PHP 4 is more suited for a production enviornment while 5 is more suited for a development enviornment.

_________________
-- Surferdude


Top
   
 Post subject:
PostPosted: Mon Jun 06, 2005 9:03 pm 
Offline
Senior Member

Joined: Sat Apr 03, 2004 7:44 am
Posts: 64
ICQ: 2623399
Quote:
PHP 5 uses a slightly diffrent syntax for OOP, which affects many scripts such as phpbb, IPB, vB etc. Because of that, PHP 4 is more suited for a production enviornment while 5 is more suited for a development enviornment.

Slightly different? :roll: OOP in PHP5 is completly rewritten and close to Java while in PHP4 it was barely existing. I've been coding in php5 since its first alpha stage in the beginning of 2003. It even has a Reflection API and a growing SPL.

PHP5 is not for development. In fact, PHP5 is a *lot* more productive than PHP4 for those who know OOP. It is also faster in most cases because of the improved memory management. Most people stick to PHP4 either because of old php code or simply because the new PHP5 is much harder to handle, although most php4 scripts run fine in php5 as well. PHP4 still remains at the level of scripting language rather than a programming language and that is why it was so popular ... too easy to learn :)


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2005 10:06 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
mastabog wrote:
Quote:
PHP 5 uses a slightly diffrent syntax for OOP, which affects many scripts such as phpbb, IPB, vB etc. Because of that, PHP 4 is more suited for a production enviornment while 5 is more suited for a development enviornment.

Slightly different? :roll: OOP in PHP5 is completly rewritten and close to Java while in PHP4 it was barely existing. I've been coding in php5 since its first alpha stage in the beginning of 2003. It even has a Reflection API and a growing SPL.

PHP5 is not for development. In fact, PHP5 is a *lot* more productive than PHP4 for those who know OOP. It is also faster in most cases because of the improved memory management. Most people stick to PHP4 either because of old php code or simply because the new PHP5 is much harder to handle, although most php4 scripts run fine in php5 as well. PHP4 still remains at the level of scripting language rather than a programming language and that is why it was so popular ... too easy to learn :)


I think he was more going for PHP4 is more proven and therefore better for 'downtime = $50k/minute' situations then PHP5 :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group