Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: zero 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?
-
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
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 ?
-
seems that the first solution doesn't work
-
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
nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress
$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
expand-template /etc/httpd/conf/httpd.conf
But 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
-
perhaps a better solution
# nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress-virtualhost
{
$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
-
Hi steph, i was able tp do it by using ibay. Thanks for leading me the way.
-
sincerely.. I can't understand the problem..
installing wordpress into primary ibay should do the trick.. am I missing something?
-
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
-
He should just install it manually with Sitemaker.
-
indeed, sitemaker can make the trick