Current time: 11-29-2024, 06:05 PM Hello There, Guest! (LoginRegister)


Post Reply 
[CentOS] Perl doesn't add a new line in Apache Config
Author Message
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #1
[CentOS] Perl doesn't add a new line in Apache Config
Perl script doesn't add a new line after domain or subdomain add.
01-30-2009 05:11 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: [CentOS] Perl doesn't add a new line in Apache Config
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?
(This post was last modified: 01-30-2009 05:19 AM by sci2tech.)
01-30-2009 05:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #3
RE: [CentOS] Perl doesn't add a new line in Apache Config
Here is:
/etc/httpd/vhosts/ispcp.conf
Code:
</IfModule>    # httpd sub entry PHP2 support END.
01-30-2009 05:43 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: [CentOS] Perl doesn't add a new line in Apache Config
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.
(This post was last modified: 01-30-2009 05:50 AM by sci2tech.)
01-30-2009 05:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #5
RE: [CentOS] Perl doesn't add a new line in Apache Config
There is 3 new lines. I add in every *_entry.tpl file 1 extra new line.
01-30-2009 05:54 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #6
RE: [CentOS] Perl doesn't add a new line in Apache Config
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).
01-30-2009 05:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #7
RE: [CentOS] Perl doesn't add a new line in Apache Config
WinSCP editor. I will add with vim.
(This post was last modified: 01-30-2009 07:23 AM by ceco91.)
01-30-2009 06:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)