LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help Needed. (https://www.linuxquestions.org/questions/linux-general-1/help-needed-586977/)

Andy12 09-24-2007 09:18 AM

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 :|.

tredegar 09-24-2007 10:18 AM

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

Andy12 09-24-2007 11:21 AM

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.

tredegar 09-24-2007 11:42 AM

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....

tredegar 09-24-2007 11:56 AM

.... 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.

Andy12 09-25-2007 03:40 AM

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

Andy12 09-25-2007 07:29 AM

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

matthewg42 09-25-2007 08:13 AM

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.

tredegar 09-25-2007 07:06 PM

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]

Andy12 09-25-2007 10:21 PM

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......


All times are GMT -5. The time now is 05:58 PM.