LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-21-2004, 10:04 PM   #1
innersmile
LQ Newbie
 
Registered: Apr 2004
Location: Florida, US
Distribution: Suse 9.2 & Solaris
Posts: 10

Rep: Reputation: 0
trying to set up a blog based on solaris


Hi, folks,

I'm going to set up my own blog on a solaris server
where now my personal homepage is located. First
I tried movabletype but failed in the installation due
to some Perl DB problems. I have no root access and
our admin just is kind of unresponsive to my request.
Now I am reading documentation of wordpress. It
requires mysql and php support. So here are my questions:

(1) How do I know if mysql is installed and if yes, its version?
I tried "which mysql" and "whereis mysql", but seems
it returned nothing, so can I assume the mysql is missing.

(2) Can I install mysql in my own space without root access?

(3) How do I know if the system supports php?

Any kind help would be greatly appreciated.
 
Old 07-21-2004, 10:54 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
(1) How do I know if mysql is installed and if yes, its version?
I tried "which mysql" and "whereis mysql", but seems
it returned nothing, so can I assume the mysql is missing.
ps -ef|grep mysql
Quote:
(2) Can I install mysql in my own space without root access?
Not (easily) if the mysql distribution is under pkg format, yes if you compile it from the source code.
Quote:
(3) How do I know if the system supports php?
That depends first on the web server used, if it is apache, search "php" occurences in the httpd.conf file.
 
Old 07-22-2004, 04:14 PM   #3
innersmile
LQ Newbie
 
Registered: Apr 2004
Location: Florida, US
Distribution: Suse 9.2 & Solaris
Posts: 10

Original Poster
Rep: Reputation: 0
mysql problem

Hi,

I just built mysql from source on Solaris. It's
installed in my own space since I have no root
access on that solaris server.

The problem is I always get following error when
trying to run mysql.

sand:163% ./mysql
ERROR 2002: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (2)

Of course, there is no such file '/tmp/mysql.sock' and
seems I need to modify the configure file '/etc/my.conf'
which also does not exist at all since I do not have write
access to /tmp and /etc.

I can run the ./bin/mysql_conf, but don't know how to use
that program.

Any help? Thanks in advance!
 
Old 07-23-2004, 03:22 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Innersmile,

It looks like you built your mysql without changing pathes to point to directories you own.
I don't think the problem you describe is Solaris specific, so you may have more luck posting this question to a more suitable forum.

Moreover, googling "ERROR 2002: Can't connect to local MySQL server" gives tons of hits, your answer is probably there.
 
Old 07-23-2004, 09:17 AM   #5
innersmile
LQ Newbie
 
Registered: Apr 2004
Location: Florida, US
Distribution: Suse 9.2 & Solaris
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jlliagre
Innersmile,

It looks like you built your mysql without changing pathes to point to directories you own.
I don't think the problem you describe is Solaris specific, so you may have more luck posting this question to a more suitable forum.

Moreover, googling "ERROR 2002: Can't connect to local MySQL server" gives tons of hits, your answer is probably there.
Hi Jlliagre,

Thank you for your reply.

I did use --prefix option when I ran ./configure, don't know other way to change pathes.

Yes, I googled before and it did return tons of answers, while most of them
suggest modifying the configuration file '/etc/my.conf' which does not exist
on my machine at all. I would post this question to other forum if I can not
get solution today. :-)

Anyway, thank you very much!
 
Old 07-23-2004, 10:25 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
From what you said, perhaps mysql just doesn't supports to be installed without root access rights, as "/etc" seems hard-coded.

Anyway, I think this is maybe the easiest of the problems you're faced for your blog project, as I see no way to later enable php on the solaris host web server and to configure it to connect to your local database, should you succeed in running it, unless you also plan to build a home instance of apache/php.

My advice would be for you to insist convincing your sysadmin to 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
Where to blog Neoxeekhrobe General 5 09-13-2005 07:35 AM
how to set mozilla 1.4 as a default browser in solaris 8 dhiruvanita Solaris / OpenSolaris 3 03-19-2005 02:12 PM
can I set the password history in solaris ooihc Solaris / OpenSolaris 3 09-24-2004 06:25 AM
New Blog jeremy LQ Suggestions & Feedback 7 06-30-2004 03:27 PM
Embedded Linux Based Set-top-box JoeyJoeJo Linux - Hardware 7 08-21-2003 04:19 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:01 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