Add new comment

Submitted by Anonymous (not registered) on Thu, 2006-01-19 06:23.
Trouble Shoot & INSTALL - APACHE/MYSQL/PHP from scratch
-------------------------------------------------------

Since the apache2 that comes with debian proves to be a bitch when it comes to configuration
lets do this...

Reinstall apache2 and also get it to work such that it points to /var/www

DANGEROUS COMMAND SO HANDLE WITH CARE...
----------------------------------------

dpkg --purge --force-depends apache2-common
dpkg --purge --force-depends apache2

MAKE SURE YOU INSTALL OR DEPENDECIES WILL BREAK
------------------------------------------------

apt-get install apache2-common
apt-get install apache2


PHP5 SUPPORT
------------
add the below to "/etc/apt/sources.list"

deb http://people.debian.org/~dexter php5 sarge

install the necessary packages

apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd

For a full list of PHP5 modules

apt-cache search php5.

to install php and mysql modules use the below

cd /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/php5.load
ln -s /etc/apache2/mods-available/php5.conf

Now start the beast....

/etc/init.d/apache2 start

now in /var/www run your first php script... Please no "Hello World!!!"

<? phpinfo() ?>

IF THERE IS SOMETHING TOO OBVIOUS OR IF THERE ARE SOME REDUNANT STEPS
PLEASE CORRECT THEM !!! DON'T COMPLAIN ;)

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.