ispCP - Board - Support
[CentOS] Perl doesn't add a new line in Apache Config - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [CentOS] Perl doesn't add a new line in Apache Config (/thread-5567.html)



[CentOS] Perl doesn't add a new line in Apache Config - ceco91 - 01-30-2009 05:11 AM

Perl script doesn't add a new line after domain or subdomain add.


RE: [CentOS] Perl doesn't add a new line in Apache Config - sci2tech - 01-30-2009 05:18 AM

Can you please be more specific? (where is not added)
Can you try last trunk (I remember that something like this was fixed)?
All configure files are templates from /etc/ispcp/apache/parts. Can you locate there where is the file with missing endline?


RE: [CentOS] Perl doesn't add a new line in Apache Config - ceco91 - 01-30-2009 05:43 AM

Here is:
/etc/httpd/vhosts/ispcp.conf
Code:
</IfModule>    # httpd sub entry PHP2 support END.



RE: [CentOS] Perl doesn't add a new line in Apache Config - sci2tech - 01-30-2009 05:49 AM

Open /etc/ispcp/apache/parts/sub_php2_entry.tpl and after last line add a new line.
Code:
<IfModule mod_php5.c>
        php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{WWW_DIR}/{DMN_NAME}/phptmp/:{PEAR_DIR}/"
        php_admin_value upload_tmp_dir "{WWW_DIR}/{DMN_NAME}/phptmp/"
        php_admin_value session.save_path "{WWW_DIR}/{DMN_NAME}/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f {SUEXEC_USER} -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ {STARTER_DIR}/{DMN_NAME}/
        <Directory "{STARTER_DIR}/{DMN_NAME}">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory {WWW_DIR}/{DMN_NAME}{MOUNT_POINT}/htdocs>
            FCGIWrapper {STARTER_DIR}/{DMN_NAME}/php{PHP_VERSION}-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "{STARTER_DIR}/{DMN_NAME}">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule><-here add a new line
Then rebuild.


RE: [CentOS] Perl doesn't add a new line in Apache Config - ceco91 - 01-30-2009 05:54 AM

There is 3 new lines. I add in every *_entry.tpl file 1 extra new line.


RE: [CentOS] Perl doesn't add a new line in Apache Config - sci2tech - 01-30-2009 05:59 AM

Well ispcp.conf is generated by contenating those template files. Did you edit them using Windows or MacOS? (There are some difference in the way this SO manipulate end of line \n|\r|\r\n).


RE: [CentOS] Perl doesn't add a new line in Apache Config - ceco91 - 01-30-2009 06:50 AM

WinSCP editor. I will add with vim.