Portal Home > Knowledgebase > Articles Database > how can i run multiple instances in apache ?


how can i run multiple instances in apache ?




Posted by notaduck, 11-04-2014, 01:39 PM
I have ubuntu 14.04 LTS server with an LAMP stack on. it is hosting Owncloud right now but i also want to host wordpress on it. right now i can acces my owncloud service at https://82.180.xx.xxx/owncloud and i would like to acces my wordpress at 82.180.xx.xxx/wordpress i have installed wordpress to the /var/www foler as /var/www/wordpress but when i am trying to acces wordpress i am getting an 404 not found. and i dosnt matter if it is local ip or external ip

Posted by cdn-hd, 11-04-2014, 03:11 PM
Hmm, you might need to give apache permissions to that folder. chown -R www-data:www-data /var/www/ The above command should do the trick, if that doesn't work you'll need to check the index.php file exists.

Posted by Datacate, 11-04-2014, 03:21 PM
Is is a fresh Wordpress install or a copy of an existing site from somewhere else? I believe that Wordpress relies on an .htaccess file in it's home directory so you may want to check for the presence of that, and verify that AllowOverride is set for that directory in your Apache config.

Posted by notaduck, 11-04-2014, 03:40 PM
i just forgot to set Documentroot in apache conf. but now i lost acces to ajenti ?

Posted by Datacate, 11-04-2014, 05:11 PM
There's a lot of ways to do something like this, but basically if you have a given doc root and add a directory within that for Wordpress, you should be able to access Wordpress from within that directory - the only requirements would be any apache directives needed for Wordpress being set for that directory, and that Wordpress knows what it's full URL (with directory) is, which is set in the config.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Peer1 NYC Connectivity (Views: 654)

Language: