LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-24-2007, 09:18 AM   #1
Andy12
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Rep: Reputation: 0
Need help installing php,apache,mysql (as a trio)


Ok lets try this again i have tried every tutorial i can possibly find always running into some stupid problem i was running php apache and mysql (as a trio)fine before i had to reformat now i cant get it to work (i use Synaptic package manager to install what i think i need still doesnt work
i've tried building from source still doesnt workif anyone can point me in the direction of yet ANOTHER tutorial i can fail at this would be great this is doing my head in good and proper Any help would be appreciated i have never had thismuch bs with it before :|.

Last edited by Andy12; 09-25-2007 at 11:03 AM. Reason: Dyslexia
 
Old 09-24-2007, 10:18 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
The command that works for me is http://localhost/phpmyadmin/ pasted into my browser.
I know you have "installed php5,apache,mysql,phpmyadmin etc...", but have you set them up?
Are the required processes running? Check with
ps -A | grep mysqld
ps -A | grep apache


You do not list your distro (please feel free to do so ), but on my kubuntu installation, these things are easily started and stopped from K- System Settings - System Services
 
Old 09-24-2007, 11:21 AM   #3
Andy12
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Sorry my distro is Linux Debian 4.0 - 2.6.18-5 i686

Results of the grep:
Code:
3899 ?     00:00:00 mysql_safe
4017 ?     00:00:00 mysqld

2954 ?     00:00:00 apache-ssl
4147 ?     00:00:00 apache

2951 2962 2963 2964 2965 are all being used by apache-sslalso

4148 4149 4150 4151 4152 4161 are all being used by apache also (not sure why or if this makesa difference.
Might i also add, all php files download as a file and will not execute as the script. Phpinfo.php for example asks to download instead of outputing the script to the browser, just thought i'd clarify that before we think it is a problem within the phpmyadmin. thanks in advance ando.

Last edited by Andy12; 09-24-2007 at 11:26 AM. Reason: Dyslexia
 
Old 09-24-2007, 11:42 AM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
The right things seem to be running.
I'll admit that I'm an Apache / PHP / MySQL noob - I just followed some tutorial (no idea where from now), installed, and bang! It was all working, to my utter amazement (I once fought for weeks with an oracle installation).

What happens when you click on the link I gave you in post #2? I get the phpMyAdmin page.

I'll see if I had the sense to keep some notes from when I installed MySQL and the rest....
 
Old 09-24-2007, 11:56 AM   #5
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
.... I did keep some (very basic) notes. See if you can make any sense of this, it got me up & running:
Code:
Installed
- mysql-server (5.0)
- mysql-client (5.0)
- libmysqlclient (15)


Started mysql with
sudo /etc/init.d/mysql start
.....It was already running!

Need to fix the root ac password:
mysqladmin -u root password rootsecret

mysql -u root -p
  You are logged in as root

mysql> create database tgdb;
Query OK, 1 row affected (0.38 sec)

mysql> grant all privileges on tgdb.* to tg identified by 'tgpass';
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye

Now get some other stuff:

tg@vaio:~$ sudo apt-get install phpmyadmin apache2 libapache2-mod-php5

 ....it installs.

tg@vaio:~$ mysql -u tg -ptgpass
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 5.0.22-Debian_0ubuntu6.06.2-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use tgdb;
Database changed
mysql> show tables;
Empty set (0.01 sec)

mysql> quit

tg@vaio:~$ sudo -i
root@vaio:~# cd /var/www/phpmyadmin
root@vaio:/var/www/phpmyadmin# chmod 0777 config

Go to: http://localhost/phpmyadmin/scripts/setup.php
set the password for config auth field to the mysql root account password 

set phpMyAdmin control user to tg
set phpMyAdmin password to tgpass
set tgdb database for advanced features
Click add then click save.
Go to a root terminal and do:
cd /var/www/phpmyadmin
cp config/config.inc.php   .   # <---Note the "dot"!!
Now need to make this config file non world-readable ....
Hope this helps.
 
Old 09-25-2007, 03:40 AM   #6
Andy12
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Code:
/var/www/phpmyadmin# chmod 0777 config

Go to: http://localhost/phpmyadmin/scripts/setup.php

installed libapache2-mod-php5 - alwready the newest version it has be buggered anyway thanks for your help.
Are the 2 things i've tried and
 
Old 09-25-2007, 07:29 AM   #7
Andy12
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Well i've spent all day obviously with no luck tutorial after tutorial whom ever thought of these applications and thought it was easy needs to be pulled up in the street and shot! i've had a gut full of this everytime i think i'm getting somewhere i get no where thanks for nothing,Ando
 
Old 09-25-2007, 08:13 AM   #8
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Andy12, please use more meaningful subjects when posting. "Help needed" is too general. A better subject would have been, "phpmyadmin installation/configuration problem". Using meaningful titles means you will attract the attention more quickly of people who can help.
 
Old 09-25-2007, 07:06 PM   #9
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Well i've spent all day obviously
Why should this be "obvious" to us?
Quote:
whom ever thought of these applications and thought it was easy needs to be pulled up in the street and shot!
In civilised countries (and I currently live in one) we do not shoot people because their (free) software does not instantly work as well as we might wish.

Whoever wrote these applications presumably did so to meet a (perceived) need for these applications (Thank you Developers!!). They are not charging you for their time, or their software applications and you are not paying anything for them. They are truly "free".

I do not recall anyone saying "it was easy" but sometimes the installation and setup is straightforward, and sometimes it is not. If you think you can write better and easier-to-use software yourself, then you are free to do so: the community will appreciate your efforts. But you will not be paid, anymore than they, or we are. They, and we, are collaborating on this project because we think it will ultimately be useful.

I do understand your frustration at not being able to get things to work, as you want, and immediately, but I find that a little calmness helps.

Quote:
i've had a gut full of this everytime i think i'm getting somewhere i get no where
If, instead of having a general moan, you told us what you are trying to achieve, and how, and the error messages you received, then we might be able to help you better.

Quote:
thanks for nothing,Ando
"nothing" ? You are getting free support here. We are doing our best for you, but this is apparently insufficient for your needs. Meanwhile your posts are all rant and scant information so it is difficult for us to help you to help yourself.

Have you read this link?
http://www.catb.org/~esr/faqs/smart-questions.html

Please read all of it. Then come back, you'll be welcome.

[Aside] Does your keyboard lack the Shift key? For example: "i" as in "I've" is usually capitalised. Sloppy punctuation = sloppy mind = unlikely to be comfortable with linux [/Aside]
 
Old 09-25-2007, 10:21 PM   #10
Andy12
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
well fuck your shitty hole site

fuck all of you cunts it may be free but the person who wrotwe it was on fuckin drugs and he does need to be pulled up in the street and shot (just like yourself)you can try to have a laughs because i wasnt happy with your reply......at your own expense....this forum is as shit as everyone has told me (my fault for not listening) wankers really know how to solve a problem......
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XGL needed for Beryl is conflicting with OpenGL needed for Cedega chunkeydelight Linux - Desktop 2 07-18-2007 05:50 AM
Errors installing Q, which is needed for Lex, which is needed for PHP Virtuality Linux - Software 1 05-29-2007 04:47 PM
Help needed srps1579 Linux - Newbie 1 11-23-2004 07:37 AM
help needed sajid anwar Linux - General 1 11-19-2004 07:20 AM
help needed here... c12ayon Programming 2 10-29-2003 10:59 AM


All times are GMT -5. The time now is 09:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration