Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 15th April 2013, 17:25
danhansen@denmark danhansen@denmark is offline
Senior Member
Join Date: Mar 2013
Posts: 255
Thanks: 55
Thanked 4 Times in 4 Posts
Exclamation ISPconfig 3 - CHMOD - PHP version etc. SOS!

Internet Service Information:
Internet Line/Used only for Internet-Servers.
Static/Fixed public IP
All ports opened in router --> "ispserverip"
Primary nameserver --> ns1.myprimarynameserver.tld
Secondary nameserver --> ns2.somedanishdomainservice.tld

System Information:
Ubuntu Server 12.04 (upgraded - do-release-upgrade*)
ISPconfig 3 v. (Single Server Setup)
Primary nameserver - BIND
SquirrelMail version 1.4.22 - Courier IMAP/POP3
Database: MySQL Serverversion: 5.5.29-0ubuntu0.12.04.2

Tutorial: "The Perfect Server - ISPConfig3 - Ubuntu Server 10.04"
Downloaded Manual for ISPConfig3 by Falko Timme
* Note's regarding "Release Upgrade": /etc/networks/interfaces added dns-nameservers according to "The Perfect Server - ISPconfig3 - Ubuntu 12.04"


I'm trying to set up an internetsite with a webshop based on:

osCommerce, Open Source E-Commerce Solutions

To do that, there is a "install function" - during installation 2 configurationfiles will be written. To be able to do this the rights (CHMOD) must be set so that the installation has "permission" to write the configurationfiles beneath. It's different from webhotel to webhotel* (webhosting) what "CHMOD" is set up to be. Most common is "644" or "755" but in some cases it will be "777"

1. How do I change these files rights, and if I'm not wrong we need to change it back after installation/creation of the files of the I'm not sure about the full path to these files, but from the website default folder, the file names are:


Is it done from the ISPserver command line/or is it a configuration in ISPconfig 3 "Sites > Websites > Domain"
I've been studying a little and found these 2 different suggestions related to this:

<IfModule mod_security2.c>
SecRuleEngine Off

sudo - run this command as a super user
find - look for something...
/var/www - ...in the /var/www directory...
-type d - ...that is a directory...
-exec chmod +s - ...and executes a chmod (change mode) +s (set the user bit) ...
{} - ...for every directory you find...
\; - and end the command.

The third option, which I think is the one, is to do it via FTP > File Permission (transl. from danish) - But I still need to know if it is the default value "754" or something else. And is it both user and group rights which needs to be set?

It's just that I know how important these settings are - and according to the ISPconfig3 manual the fan "System" and SQL settings are not a places to "play around"!

2. Regarding the Database:

Connect to Database - "First you need to enter the address for your database, then username, then password and finally the name on the database."

I succeeded in creating a database - first the databaseuser and then the database - so I have databasename, databaseuser and password, but the "address for the database" I'm not sure about. Please help with an example.

And finally,

3. I need some advice regarding the settings in "Sites > Websites > Domains"
Regarding PHP on the ISPconfig server? Do I need to select "default php version" in the ISPconfig CP or which is "normal" - I've read in the manual that it's possible to install "multiple PHP versions" but which is the "most used" or "default" if any, I can't figure out
So which is the default setting? To enable PHP I read in the manual that under "PHP Version" the setting "default" is selected, but what about the field with "Fast-CGI, PHP-MOD etc??
PHP (disabled, fast-cgi, CGI, etc.) ?
PHP Version (default or none) ?

Sorry about these "beginner" questions. It's just that I doesn't dare to "try" and see what might happen.

I just need to be pointed in the right direction, maybe a little more - But any advice is very much welcome.
Looking very much forward to hear from you...

Kind Regards,
Reply With Quote
Sponsored Links
Old 15th April 2013, 17:54
pititis pititis is offline
Senior Member
Join Date: Dec 2010
Location: Mnchen
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts

You can use command line or ftp client.

Yes, after installation you must change the permissions of these files. Do it with command line or ftp client.

Path are usually:

where kontrolpanel is your custom admin directory.

Change directory and set permissions:
cd /var/www/yourwesite.com
chmod 600 web/includes/configure.php
chmod 600 web/kontrolpanel/includes/configure.php
Using 600 is the best choice in this case (only for the config files).

Address for the database means where the database is located. If your mysql server is running in the same server just use localhost or

Website settings. php mode: Choose fastcgi, version default and enable suexec. Disable CGI, SSI, Perl, Ruby and python


Last edited by pititis; 15th April 2013 at 18:04.
Reply With Quote
The Following 2 Users Say Thank You to pititis For This Useful Post:
danhansen@denmark (20th April 2013), sistemas (15th April 2013)
Old 20th April 2013, 01:25
danhansen@denmark danhansen@denmark is offline
Senior Member
Join Date: Mar 2013
Posts: 255
Thanks: 55
Thanked 4 Times in 4 Posts

Hi Pititis,

Problem solved...
Thanks a lot

Kind Regards,
Kind Regards

__________________________________________________ _______
Fixed IP/WAN
DMZ -> "ispserverip"
Primary NameServer -> ns1.myprimarynameserver.tld
Secondary NameServer -> ns2.somedomainservice.tld

Ubuntu Server 12.04.4
ISPconfig 3 v. (Single Server Setup)
NameServer: BIND v.9.8.1-P1
SquirrelMail: v.1.4.22
MailServer: PostFix v.2.9.6 - IMAP/POP3 Dovecot v.2.0.19
Database: MySQL Server v.5.5.29-0ubuntu0.12.04.2
Tutorial: "ThePerfectServer-ISPconfig3-Ubuntu12.04"
Reply With Quote


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
issues in /var/log/apache2/error.log denpark Installation/Configuration 1 22nd November 2011 10:12
ISPConfig Autoresponder, adding subdomain problem BlackHat Installation/Configuration 4 18th October 2011 15:24
PHP warnings after upgrade to ISP config 3.03 stevegjacobs Installation/Configuration 5 30th October 2010 15:31
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
File Permissions demonize Installation/Configuration 0 26th June 2008 21:11

All times are GMT +2. The time now is 17:15.

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