Solved Apache24 Mysql PHP install problem

Apache 24 install,configuration and start successful.

Mysql install is the problem:

pkg install mysql57-server mysql57-client

Error message:

Code:
http://http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/All/mysql57-server-5.7.17_3.txz: Not Found

I checked the list and these two files are there:

http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/

What's happening?

BTW: My intention is to install apache, mysql, php, phypmyadmin, and maybe also wordpress.

So far,I've hit a snag. Could I have picked up php or some other program that needs mysql and have it automatically add it in?
 
Your URL looks weird, there's a lot of stuff doubled for some reason. What does pkg -vv output?
 
That means databases/mysql57-server failed to install.

That's what I was thinking.I tried to just do the install over and this is the error I get:

Code:
root@blackbox:/usr/ports/databases/mysql57-server # make config-recursive install distclean
===> Setting user-specified options for mysql57-server-5.7.13 and dependencies
===>   mysql57-server-5.7.13 depends on executable: bison - found
===>   mysql57-server-5.7.13 depends on file: /usr/local/bin/cmake - not found
===>   cmake-3.5.2_1 depends on executable: sphinx-build - not found
===>   py27-sphinx-1.4.4 depends on package: py27-Jinja2>=2.3 - not found
===>   py27-Jinja2-2.8 depends on package: py27-setuptools27>0 - not found
===>  Installing for py27-setuptools27-20.0
===>   py27-setuptools27-20.0 depends on file: /usr/local/bin/python2.7 - found
===>  Checking if py27-setuptools27 already installed
===>   Registering installation for py27-setuptools27-20.0 as automatic
Installing py27-setuptools27-20.0...
pkg-static: py27-setuptools27-20.0 conflicts with py27-setuptools-32.1.0_1 (installs files into the same place).  Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
*** Error code 70

Stop.
make[7]: stopped in /usr/ports/devel/py-setuptools27
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/devel/py-Jinja2
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/devel/py-Jinja2
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/textproc/py-sphinx
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/databases/mysql57-server
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/mysql57-server
 
Thanks.I tried following it(from MySql57 onward),but it must have missed some of the files,or something,because I get an error message when I issue service mysql-server start ,saying:

Code:
mysql-server does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable

Suggestions?


Did you try pkg install mysql57-server? Or maybe pkg install mysql56-server if there were problems...
 
Your URL looks weird, there's a lot of stuff doubled for some reason. What does pkg -vv output?

Can you provide that? It could be that your /etc/pkg/FreeBSD.conf is malformed. Mine contains following repository info:

Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
 
That looks good. Looking a little closer at the URL I noticed:
Code:
http://[b]http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/[/b]pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/All/
It looks like you tried to switch to the latest repository but changed the wrong parameter.
What's in /usr/local/etc/pkg/repos/? Is there a file redefining FreeBSD: { ... }?
 
Code:
Installing py27-setuptools27-20.0...
pkg-static: py27-setuptools27-20.0 conflicts with py27-setuptools-32.1.0_1 (installs files into the same place).  Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
*** Error code 70

Stop.
See /usr/ports/UPDATING 20170316:
Code:
20170316:
  AFFECTS: users of python setuptools
  AUTHOR: antoine@FreeBSD.org

  The python setuptools ports have been renamed to better match other python ports.
  Ports users need to rename them so that portupgrade and portmaster do not
  get confused.  For example:

    pkg set -n py27-setuptools27:py27-setuptools
    pkg set -o devel/py-setuptools27:devel/py27-setuptools
  or
    pkg set -n py35-setuptools35:py35-setuptools
    pkg set -o devel/py-setuptools35:devel/py35-setuptools
 
I figured it out -I think.
I did a portsnap fetch extract (I thought I'd installed it)and reissued the command to install mysql57-server from ports and it worked fine.

Right now.I'm stuck on this part of the above tutorial:

mkdir /usr/local/www/phpMyAdmin/config && chmod o+w /usr/local/www/phpMyAdmin/config


Error message:
Code:
 mkdir: /usr/local/www/phpMyAdmin: No such file or directory
 
You're correct.

Long story,made a mess,had to start over.All fine now,just have to install Wordpress,then it's all done!

Thanks,and thanks to all!
 
Back
Top