HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   ISPconfig 3 - CHMOD - PHP version etc. SOS! (http://www.howtoforge.com/forums/showthread.php?t=61471)

danhansen@denmark 15th April 2013 16:25

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.3.0.5.2 (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 8.8.8.8 8.8.4.4 according to "The Perfect Server - ISPconfig3 - Ubuntu 12.04"
---------------------------------------------------------------------------------------------


Hi,

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

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

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:

/web/configure.php
/web/kontrolpanel/includes/configure.php


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:

a.
http://www.faqforge.com/tag/ispconfig3/page/2/
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>


b.
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.

c.
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 :o
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,
Dan

pititis 15th April 2013 16:54

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:
/web/includes/configure.php
/web/kontrolpanel/includes/configure.php

where kontrolpanel is your custom admin directory.

Change directory and set permissions:
Code:

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 127.0.0.1

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

Cheers!

danhansen@denmark 20th April 2013 00:25

Hi Pititis,

Problem solved...
Thanks a lot ;)

Kind Regards,
Dan


All times are GMT +2. The time now is 05:18.

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