LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2009, 04:00 AM   #1
Hb_Kai
Member
 
Registered: Jan 2008
Distribution: Windows 8.1, Debian 7
Posts: 91

Rep: Reputation: 49
Trying to learn PHP / MySQL from online tutorial but can't seem to set up apache2


Hey.

This may or may not be the right place to post this so sorry to any mod that has to move it if it's not.


I'm trying to learn a bit more about PHP and MySQL at the minute from this online tutorial/guide but it is saying that I first need to set up a server so rather than spending money for that, I have been trying to set up apache2 using these steps. I have gotten the info.php part to work displaying the PHP and MySQL modules but below this, the steps for phpmyadmin I am having the problem with.

The steps say to use aptitude to download and install it so I done this then tried going to localhost/phpmyadmin but I get a 404 Not Found error.

I also saw a post on this page saying:
Quote:
To make PhpMyAdmin work try to configure apache2.conf to use PHPMyAdmin via browser:

$ sudo gedit /etc/apache2/apache2.conf

Then insert the line below into apache2.conf:

Include /etc/phpmyadmin/apache.conf
So I tried that and it didn't work. I also tried restarting apache2 a couple times to make sure that wasn't it and it still didn't work.


I was wondering if anybody can tell me if I have done something wrong, missed something or could tell me why it's not working?

Thanks.

Last edited by Hb_Kai; 12-21-2009 at 04:08 AM.
 
Old 12-21-2009, 05:27 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you are just planning to learn PHP right now, then you can easily setup a LAMP or wamp server from a pre compiled stack that are available for download for windows as well as Linux.
Theres this Turnkey stack for LAMP which is an iso installable image. Best is either Bitnami stack or XAMPP stack.
You can easily install and configure without much fuss and put more energy into learning PHP.
Both of the stacks have MySQL and phpmyadmin pre built in.
 
Old 12-21-2009, 04:05 PM   #3
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
Hello Hb_Kai.

I'm running Debian (ubuntu father) and that guide looks pretty straight forward

try these steps to see if works

1.- Type http://localhost/phpmyadmin/index.php to see if you can access phpmyadmin

if that doesn't work follow steps 2, 3 and 4.

2.- Purge all packages installed (do a sudo su first), this will uninstall all packages, dependencies and configuration files.

Code:
aptitude purge mysql-server mysql-client apache2 php5 libapache2-mod-php5 phpmyadmin
if purging php5 didn't remove the dependencies and you installed all the php5 packages also do a
Code:
aptitude purge php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json
3.- Reinstall the follow packages only

Code:
aptitude install php5 apache2 mysql-server mysql-client phpmyadmin
4.- Check your apache, mysql and phpmyadmin.

I'm not familiar with ubutu, installed it once the 7.06 LTS for a few days, i have been used Debian always.

You can get debian and give it a try

Let me know if this works.
 
  


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
PHP-MySQL tutorial and Linux Networking tutorial needed Please dlux45 Linux - Software 6 04-19-2010 01:10 PM
MySQL PHP Apache2 on Debian Stormrage Debian 2 07-16-2006 03:02 PM
PHP-Mysql Tutorial for beginner/dummies ewinandar Programming 1 11-10-2004 02:10 AM
AS 3 w/ PHP, MySQL, and Apache2 pollardw Red Hat 1 02-23-2004 08:47 PM
Installation Tutorial Apache 2, PHP 4, MySQL 3.23 freddymio Programming 2 07-03-2002 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:36 AM.

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