ISPconfig 3 - CHMOD - PHP version etc. SOS!

Discussion in 'General' started by [email protected], Apr 15, 2013.

  1. danhansen@denmark

    [email protected] Member HowtoForge Supporter

    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 - 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 :eek:
    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,
  2. pititis

    pititis Member

    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/
    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: Apr 15, 2013
  3. danhansen@denmark

    [email protected] Member HowtoForge Supporter

    Hi Pititis,

    Problem solved...
    Thanks a lot ;)

    Kind Regards,

Share This Page