Add new comment
Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
|
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 ;)
Reply |





Recent comments
7 hours 9 min ago
12 hours 57 min ago
14 hours 49 min ago
16 hours 34 min ago
20 hours 24 min ago
1 day 2 hours ago
1 day 2 hours ago
1 day 6 hours ago
1 day 12 hours ago
1 day 17 hours ago