LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2005, 05:32 PM   #1
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Rep: Reputation: 15
Apache, mySQL, php


I compiled these from source by
./configure
make
make install

just wondering how i can set these up to work together, like a PHP-NUKE system or similar
 
Old 08-06-2005, 08:30 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Did you add mysql support to apache;
http://www.linuxhelp.net/guides/lamp/
down at the bottom is how to get apache to load php support
For mysql;

http://www.webdevelopersnotes.com/tu..._on_linux.php3
http://dev.gentoo.org/~chriswhite/mysql.html
lots of guides on google
 
Old 08-07-2005, 03:38 PM   #3
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Original Poster
Rep: Reputation: 15
hmm.. thanks for the guides, while i was following the first one and after i did
[root@server bin]# /usr/local/mysql//bin/mysqld_safe --skip-networking >> /dev/null &
[1] 10411

i got

[root@server bin]# chown: `mysql': invalid user

any help would be great, thanks
 
Old 08-07-2005, 05:22 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Once i have it installed all I do is;
Code:
/usr/bin/mysqladmin -u root -h localhost password 'new-password'
$ mysql -u root  -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.0.24-debug

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

mysql>quit
Just to see if it is working. Then I install phpmyadmin.

Last edited by comprookie2000; 08-07-2005 at 05:23 PM.
 
Old 08-11-2005, 05:26 PM   #5
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Original Poster
Rep: Reputation: 15
Tried /usr/bin/mysqladmin -u root -h localhost password 'new-password'

and got

[root@server ~]# /usr/local/mysql/bin/mysqladmin -u root -h localhost password 'linux'
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!


 
Old 08-11-2005, 07:33 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Re: Apache, mySQL, php

Quote:
Originally posted by Kupo
I compiled these from source by
./configure
make
make install

just wondering how i can set these up to work together, like a PHP-NUKE system or similar
Why didn't you just install it from the fedora cd or yum?
 
Old 08-11-2005, 07:35 PM   #7
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Original Poster
Rep: Reputation: 15
trying to learn how to install it from source
 
Old 08-11-2005, 07:42 PM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
What did you find when you:
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
 
Old 08-11-2005, 07:44 PM   #9
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Original Poster
Rep: Reputation: 15
Whats the command to find out that?
 
Old 08-11-2005, 07:58 PM   #10
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I'm not sure so all this is just a guess,
Quote:
[root@server bin]# /usr/local/mysql//bin/mysqld_safe --skip-networking >> /dev/null &
[1] 10411

i got

[root@server bin]# chown: `mysql': invalid user
Try
Code:
cd /usr/local/mysql/bin
ls (do you see mysql_safe? if yes try)

./mysql_safe --user=mysql &
http://dev.mysql.com/doc/mysql/en/mysqld-safe.html
 
Old 08-11-2005, 08:44 PM   #11
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Here is some more info on fedora and apache2,mysql and php;
http://www.neowin.net/forum/lofivers...p/t296612.html
 
Old 08-11-2005, 10:00 PM   #12
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Original Poster
Rep: Reputation: 15
hmm i got mysql to work now when i try to configure php to work with apache and mysql with this command

./configure --with-apache=../httpd-2.0.54 --with-mysql=/usr/local/mysql/

it returns

(after the normal ./configure stuff)

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... configure: error: Use --with-apxs2 with Apache 2.x!

so i did

./configure --with-apxs2=../httpd-2.0.54 --with-mysql=/usr/local/mysql/

and it returned

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/src/httpd-2.0.54 follows:
./configure: line 5467: /usr/local/src/httpd-2.0.54: is a directory
configure: error: Aborting

Thanks for the help
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache+php+mysql andrew007 Slackware 4 05-16-2005 11:50 AM
Apache/PHP/MySQL brokenflea Slackware 9 10-29-2004 12:16 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM
Apache/MySQL/PHP c0c0deuz Linux - General 2 05-18-2002 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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