Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd March 2012, 03:08
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Question Configuring an existing site to work with ISPConfig

Hello again,

I thought I would ask for advice before I started on my plans.

I already had my server up and running Ubuntu 10.04 nginx php5-fpm before I come across ISPConfig, I have one active/production site but had nearly a dozen spare domains to play with.

I got ISPC set up just fine and began removing my preconfigured vhosts and associated web accessible folders. Once I had removed them I would readd the sites via ISPC. All has been well so far.

Now my production site is a bit more complicated.

The url is http://the-sps.org but I've got a domain alais http://the-sps.net which has several subdomains which serve up various different types of content. I also have a few extra snipets of code which aren't present in the normal ISPC php directives. Also my public accessible folder location is different than the folder location that ISPC uses.

My production site is located in /srv/www/the-sps.org/ whereas ISPC locates them at /var/www/the-sps.org/ is it easy enough to move all the files?

The default ISPC PHP directive is
Code:
location ~ \.php$ {
            try_files $uri =404;
            include /etc/nginx/fastcgi_params;
            fastcgi_pass unix:/var/lib/php5-fpm/web8.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME       $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $fastcgi_script_name;
            fastcgi_intercept_errors on;
        }
My PHP directive has the following small but very important difference.
Code:
location ~ \.php$ {
		try_files $uri /index.php =404;
		fastcgi_pass   unix:/tmp/phpfpm.sock;
		fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
		include        fastcgi_params;
	}
I have read that manually editing the vhosts will result in the edits not sticking, how can I make my edit stick?

Sorry for the wall of text, I'm all ears at this stage as I just want to get this one last move right before I make the jump.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 23rd March 2012, 07:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,195 Times in 3,211 Posts
Default

Quote:
My production site is located in /srv/www/the-sps.org/ whereas ISPC locates them at /var/www/the-sps.org/ is it easy enough to move all the files?
Move all files to the folders from ISPConfig and then create a symlink from /srv/www to /var/www.

The templates for the nginx configuration files are in /usr/local/ispconfig/server/conf, copy the file that you like to change to the conf-custom folder and then modify it there so that it fits your needs. The templates get applied to a site when you add or modify settings for that site in ispconfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Mitzy (23rd March 2012)
  #3  
Old 24th March 2012, 03:29
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
Move all files to the folders from ISPConfig and then create a symlink from /srv/www to /var/www.

The templates for the nginx configuration files are in /usr/local/ispconfig/server/conf, copy the file that you like to change to the conf-custom folder and then modify it there so that it fits your needs. The templates get applied to a site when you add or modify settings for that site in ispconfig.
Thanks.

NVM Sorted, thanks you.

Last edited by Mitzy; 24th March 2012 at 04:18.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 fresh instalation - email tab is empty artur_gib Installation/Configuration 13 16th March 2013 00:51
How to config Proftpd to work with passive mode in ISPConfig 2.2.35 X-admin Installation/Configuration 0 6th June 2010 18:52
Configuring an existing ISPConfig installation Dutchy Installation/Configuration 1 4th November 2009 14:29
How can I get PHP to work after ISPConfig Install alvadore Installation/Configuration 22 30th March 2008 15:57
Add Existing Site to Client? mphetameme General 3 10th September 2006 00:59


All times are GMT +2. The time now is 08:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.