Koozali.org: home of the SME Server

need help - wordpress installation

Offline zero

  • 2
  • +0/-0
need help - wordpress installation
« on: November 27, 2013, 09:31:57 AM »
I followed contrib howto installing wordpress and it installed perfectly (easy installation). My question is, how do I install wordpress in root directory? My current installation is in http://myword.loc/wordpress and i want it to be in http://myword.loc any tutorials?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: need help - wordpress installation
« Reply #1 on: November 27, 2013, 11:34:57 AM »
all is written in documentation

* see http://wiki.contribs.org/Wordpress#Options

therefore it seems that you can change the url see http://wiki.contribs.org/Web_Application_RPM#New_DB_settings

Code: [Select]
     To run foo from the root of a domain, This option is buggy to remove

config delprop foo domain

To enable your changes run these commands

expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith

change foo by wordpress :)

but it seems to me that you have more things to perform if you wan to test it as make dns record on your router, or on your external dns record. This can not work out of the box.

* The other solution to me could be to install wordpress by hand in an ibay and then set a domain to point to this ibay, with this manner you could have a root url.

* Not sure if with dns we can trick to give a cname as  mydomaine.se/wordpress ?
« Last Edit: November 27, 2013, 11:42:12 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: need help - wordpress installation
« Reply #2 on: November 27, 2013, 11:53:19 AM »
seems that the first solution doesn't work
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: need help - wordpress installation
« Reply #3 on: November 27, 2013, 01:03:58 PM »
I have a solution but i do not know if it is appropriate as it is a hack. You should open a bug to find a better solution .

the hack consists :

make an entry in your dns record of your router or dns server to point the domain toto.com to the ip of your server

add in the wordpress template

Code: [Select]
nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress
Code: [Select]
      $OUT .= "Alias  /wordpress  /usr/share/wordpress\n";
######add-this-to-the-template
        $OUT .= "<VirtualHost 0.0.0.0:80>\n";
        $OUT .= "    ServerName toto.com\n";
        $OUT .= "    DocumentRoot         /usr/share/wordpress\n";
        $OUT .= "</VirtualHost>\n";
######End
      $OUT .= "\n";

then issue this CL
Code: [Select]
expand-template /etc/httpd/conf/httpd.confBut it is a quick and bad hack as the domain toto.com will never appear in the server-manager and the day when you will set the same name of domain, you will have some troubles. In the same way when the rpm will be updated you will have some problem, except if you do your own fragment of template
« Last Edit: November 27, 2013, 01:17:55 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: need help - wordpress installation
« Reply #4 on: November 27, 2013, 01:41:27 PM »
perhaps a better solution

# nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress-virtualhost

Code: [Select]
{
       $OUT .= "<VirtualHost 0.0.0.0:80>\n";
        $OUT .= "    ServerName toto.com\n";
        $OUT .= "    ServerAlias www.toto.com\n";
        $OUT .= "    DocumentRoot         /usr/share/wordpress\n";
        $OUT .= "</VirtualHost>\n";
}

but you will have the same inconveniences as above
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline zero

  • 2
  • +0/-0
Re: need help - wordpress installation
« Reply #5 on: November 27, 2013, 02:38:22 PM »
Hi steph, i was able tp do it by using ibay. Thanks for leading me the way.

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: need help - wordpress installation
« Reply #6 on: November 27, 2013, 02:49:36 PM »
sincerely.. I can't understand the problem..
installing wordpress into primary ibay should do the trick.. am I missing something?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: need help - wordpress installation
« Reply #7 on: November 27, 2013, 08:43:58 PM »
it is what zero does after he tried the wordpress rpm. His problem was that he does'nt want the url http://his-domaine.com/wordpress, he simply wants   http://his-domaine.com
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: need help - wordpress installation
« Reply #8 on: December 02, 2013, 07:29:37 PM »
He should just install it manually with Sitemaker.
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: need help - wordpress installation
« Reply #9 on: December 02, 2013, 08:45:21 PM »
indeed, sitemaker can make the trick
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!