View Full Version : PHP version...
ctroyp
9th October 2005, 04:25
I currently have PHP 5.0.5 installed for ISPConfig. I am running another application (phpBB2) on my server and it requires a version below 5.x. Does anyone see any issues on downgrading? Anything I need to be concerned with in ISPConfig?
till
9th October 2005, 13:04
ISPConfig works with PHP4 as well as with PHP5. I think you will not get any issues with ISPConfig.
ctroyp
9th October 2005, 18:27
When I remove the php 5.0.5 version, it is not going to remkove any shared files used by ISPConfig is it? Or, would it be better to just install the 4.x version over top?
till
9th October 2005, 18:34
There are no shared files, ISPConfig has its own PHP5 installation for the controlpanel backend so it is not affected by the change of the PHP installation for the websites.
I recommend to first remove the PHP5 before installing PHP4.
ctroyp
9th October 2005, 19:29
I think I may have found an underlying problem...
I was going to use the 'Add/Remove Applications' in the GNome desktop (since I am not that comfotable with the terminal yet). When I unchecked 'php' package and continued to 'Update' it came up with the following error:
Unlocatable package:
php
Required by:
('php-pear', '5.0.5', '2.1')
('php-ldap', '5.0.5', '2.1')
('php-devel', '5.0.5', '2.1')
('php-gd', '5.0.5', '2.1')
('php-imap', '5.0.5', '2.1')
('php-mysql', '5.0.5', '2.1')
('php-odbc', '5.0.5', '2.1')
('php-xmlrpc', '5.0.5', '2.1')
ctroyp
15th October 2005, 23:58
I am still having issues on downgrading my PHP 5.0.5 version. So ISPConfig has its own instance of PHP5. With that in mind, I tried installing PHP 4.4.0 on my system, but the installation instructions on the PHP website directed me to install Apache 2 along with it. I wen on with the install and everything seemed okay.
When I did:
php -v
it replied with:
PHP 5.0.5 (cli) (built: Sep 8 2005 06:58:48)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
Now I am confused...shouldn't it be 4.4.0?
Back to my original problem (PHPBB2 requires < PHP 5.x). When I am trying to install PHPBB2 for one of my ISPConfig sites, is there something special that I need to do to get it to use my PHP 4.4.0 version?
Would it just be easier to downgrade my ISPConfig PHP instance to 4.4.0? What is involved in that?
Thanks for any help you can offer...
falko
16th October 2005, 00:31
Now I am confused...shouldn't it be 4.4.0?
Run updatedb
locate php to find out if you have more than one PHP installation (besides the ISPConfig PHP, of course). Maybe your PHP 4 saw that there is already a PHP 5 and chose to install itself somewhere else.
Would it just be easier to downgrade my ISPConfig PHP instance to 4.4.0? What is involved in that?
:eek: No, because the ISPConfig PHP is not used by your main Apache. This is something completely different.
ctroyp
16th October 2005, 00:53
All I could find is 4.4.0?
Shouldn't 5.0.5 show up somewhere?
ctroyp
16th October 2005, 01:32
Quote:
Originally Posted by ctroyp
Would it just be easier to downgrade my ISPConfig PHP instance to 4.4.0?
What is involved in that?
:eek: No, because the ISPConfig PHP is not used by your main Apache. This is something completely different.
If I am installing PHPBB2 for one of my ISPConfig hosted sites, the PHPBB2 directory needs to be located in the respective web directory of the site. Since ISPConfig uses PHP 5.0.5, won't PHPBB2 try and use it also?
falko
16th October 2005, 03:00
If I am installing PHPBB2 for one of my ISPConfig hosted sites, the PHPBB2 directory needs to be located in the respective web directory of the site. Since ISPConfig uses PHP 5.0.5, won't PHPBB2 try and use it also?
No, because ISPConfig has its own Apache. There are two Apaches on your system: your main one running on port 80 (and maybe 443) which uses its own PHP, and the ISPConfig Apache on port 81 using another PHP. These two are totally independent of each other.
ctroyp
16th October 2005, 04:29
Okay, I think I know how to fix this now.
One other thing...
I noticed in my main instance of Apache, not the ISPConfig, that the following line is present:
Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
I understand virtual hosts, but why does this line exist in my main Apache config file?
Thank you VERY much for answering my questions Falko, you have been very helpful!
falko
16th October 2005, 11:54
Okay, I think I know how to fix this now.
One other thing...
I noticed in my main instance of Apache, not the ISPConfig, that the following line is present:
Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
I understand virtual hosts, but why does this line exist in my main Apache config file?
Because it's your main Apache that serves your virtual hosts. Don't let yourself irritate by the string ispconfig on the file name - that's just because it's the ISPConfig system which writes that file.
ctroyp
16th October 2005, 18:23
Now I have a problem with my sites linking to the wrong directory.
In my main Apache config file is the following:
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
and:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
Is this correct? If not, what needs to be changed to direct my vhosts to the respective directories? /home/www/web1/web, etc...
till
16th October 2005, 18:31
That is correct, the document root settings are not relevant for ISPConfig. ISPConfig writes the vhost settings in the file /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf that is included at the end of the httpd.conf.
ctroyp
17th October 2005, 01:26
Well, I thought I had it figured out but I still cannot get the ISPConfig sites to route to the proper directories. I keep getting the main Apache (default) page for my sites.
Everything looks correct in all of the config files. I don't know where to turn now.
This is what is in the main Apache httpd.conf file (/etc/httpd/conf) for ISPConfig:
###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
<Directory /home/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/user/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/cgi-bin>
Options ExecCGI -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
and the ISPConfig Vhosts_ispconfig.conf file (/etc/httpd/conf/vhosts):
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.2.50:80
NameVirtualHost 192.168.2.50:80
#
#
######################################
# Vhost: www.mydomain1.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain1.com:80
ServerAdmin webmaster@mydomain1.com
DocumentRoot /home/www/web1/web
ServerAlias mydomain1.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mydomain2.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain2.com:80
ServerAdmin webmaster@mydomain2.com
DocumentRoot /home/www/web2/web
ServerAlias ftp.mydomain2.com mydomain2.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web2/phptmp/
php_admin_value session.save_path /home/www/web2/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ftp\.mydomain2\.com [NC]
RewriteRule ^/(.*)$ http://www.mydomain2.com/ftp/$1 [R]
</VirtualHost>
#
#
#
Short of me having to reinstall everything, I thought I would post this info to see if you guys saw anything wrong. With this in mind, I can access my ISPConfig control panels, and FTP sites, etc.--just not the actual websites.
Is there anything you see that is incorrect? If not, what else do I need to check to see why the websites will not show?
THANKS!
till
17th October 2005, 10:06
Are you sure your domain mydomain2.com resolves to the correct IP: 192.168.2.50?
The vhosts are namebased, that means even if your domain resolves to an IP that is on the same server but it is not the IP in the vhost configuration you will see the apache main website!
falko
17th October 2005, 10:10
Is it possible that you have Apache and Apache2 installed on your system, and Apache2 is the one that's running? Then maybe the ISPConfig configuration got written to Apache instead of Apache2 so that it has no effect...
ctroyp
17th October 2005, 15:40
Are you sure your domain mydomain2.com resolves to the correct IP: 192.168.2.50?
To the best of my knowledge it is setup correctly. I have had these sites up and running correctly for a couple months now. It all changed when I installed Apache2 again with PHP4. I installed Apache2 and PHP4 in /usr/local/apache2 and PHP4 in /usr/local/apache2/lib/php-4.4.0. The problem is, when I installed this new instance of Apache, it wrote to my main (original) Apache config file somehow. It put in random start statements containing "apachectl start". I removed everything in my main config file to get it to match my original config, but it left me in the situation I am currently at. One other thing I did was I copied the PHP4 (libphp4.so) over to my modules directory of the main Apache and changed the main config file to "LoadModule php4_module modules/libphp4.so" instead of PHP5...
I did stop the newly installed Apache service and restarted the main.
To the best of my knowledge, this is all that I did.
How do I confirm that my domains are being resolved properly?
ctroyp
17th October 2005, 15:44
Is it possible that you have Apache and Apache2 installed on your system, and Apache2 is the one that's running? Then maybe the ISPConfig configuration got written to Apache instead of Apache2 so that it has no effect...
In my last reply, I mentioned that I did install another instance of Apache2. This made it three instances of Apache2:
Main Apache2 in the /etc directory
ISPConfig Apache2, and
the new Apache2 that I installed with PHP4
ctroyp
17th October 2005, 15:50
I juust realized that I cannot access either domain site (even though they both route to the main apache index.html) from outside my network--I get The page cannot be displayed". I can at least access the something from inside my network.
falko
17th October 2005, 17:25
There's one Apache tto much on your system... :D Try to find out which configuration files belong to your main Apache, and make sure that ISPConfig is writing to these files, not the ones of the other Apache.
ctroyp
17th October 2005, 18:07
There's one Apache tto much on your system... :D Try to find out which configuration files belong to your main Apache, and make sure that ISPConfig is writing to these files, not the ones of the other Apache.
Yeah, I messed up by adding the third one when I was trying to install PHP4. The only install instructions I could find was with Apache as well. But, I understand how to do it now without Apache. Oh well, I will uninstall the third Apache.
To remove the third Apache, would it be best to just delete all the associated files?
*****
I just ssh'd in to my server to rename the third apache directory to _apache2 and then restart my main apache. When I did it came back with:
[root@server1 init.d]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Oct 17 11:04:52 2005] [warn] module php4_module is already loaded, skipping
[Mon Oct 17 11:04:52 2005] [warn] NameVirtualHost 192.168.2.50:80 has no VirtualHosts
[ OK ]
ctroyp
17th October 2005, 21:54
Why would I get the message, "NameVirtualHost 192.168.2.50:80 has no VirtualHosts". The main Apache loads the Vhosts_ISPConfig.conf file.
This is what is in the main Apache config file for Virtual Hosts:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
<Directory /home/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/user/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/cgi-bin>
Options ExecCGI -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
falko
17th October 2005, 23:12
Why would I get the message, "NameVirtualHost 192.168.2.50:80 has no VirtualHosts".
It's only a warning, nothing serious.
What's in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf?
ctroyp
17th October 2005, 23:53
What's in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf?
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.2.50:80
NameVirtualHost 192.168.2.50:80
#
#
######################################
# Vhost: www.mydomain1.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain1.com:80
ServerAdmin webmaster@mydomain1.com
DocumentRoot /home/www/web1/web
ServerAlias mydomain1.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mydomain2.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain2.com:80
ServerAdmin webmaster@mydomain2.com
DocumentRoot /home/www/web2/web
ServerAlias ftp.mydomain2.com mydomain2.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web2/phptmp/
php_admin_value session.save_path /home/www/web2/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ftp\.mydomain2\.com [NC]
RewriteRule ^/(.*)$ http://www.mydomain2.com/ftp/$1 [R]
</VirtualHost>
#
#
#
falko
18th October 2005, 00:08
Is it possible the you have the IP address 192.168.2.50 twice under Management -> Server -> Settings? Once in "IP Address" and once in "IP List"? If so, remove it from "IP List".
ctroyp
18th October 2005, 00:58
192.168.2.50 was in both places. I removed the one from the IP List and restarted the Apache. Still no luck though.
falko
18th October 2005, 01:43
192.168.2.50 was in both places. I removed the one from the IP List and restarted the Apache. Still no luck though.
I know, this was only the first step. :)
Now you have to change something in ISPConfig for a web site, e.g. switch on/off SSI for a web site, so that ISPConfig sees that there's a change for a web site and rewrites the Apache configuration.
ctroyp
18th October 2005, 03:03
I thought we were on to something there, but it didn't help. I restarted apache too...
Under each website in ISPConfig, should they both be using the same IP? 192.168.2.50?
Also, I deleted the third Apache directories I had installed hoping this would help.
I noticed one thing when rebooting my server. When it was booting back up I saw a message error for named ...something like pri.mydomain1.com and pri.mydomain2.com ...
but it went too fast to record what it was actually saying.
Any idea what that would mean??
ctroyp
18th October 2005, 18:00
This wouldn't be a BIND issue would it?
falko
18th October 2005, 19:14
I have no idea. :confused: Did you have a look at /var/log/messages and /var/log/syslog?
ctroyp
18th October 2005, 21:16
Here is what I found in the /var/log/messages file. Nothing looks too peculiar beyond this:
Oct 17 18:06:33 server1 named: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Oct 17 18:06:33 server1 named: zone 2.168.192.in-addr.arpa/IN: loaded serial 2005092901
Oct 17 18:06:33 server1 named: dns_master_load: pri.mydomain1.com:22: server1.mydomain1.com: CNAME and other data
Oct 17 18:06:33 server1 named: zone mydomain1.com/IN: loading master file pri.mydomain1.com: CNAME and other data
Oct 17 18:06:33 server1 named: _default/mydomain1.com/IN: CNAME and other data
Oct 17 18:06:33 server1 named: zone mydomain2.com/IN: loaded serial 2005100301
I also looked in the other logs and didn't see any relevant error messages.
Some final questions before I jump into a reinstall:
1) How can I confirm that ISPConfig is writing to my main Apache?
2) Would you happen to have a copy of a basic FC4 Apache conf file w/ISPConfig installed that I could compare to? If you have it readily available...I am just hoping I haven't overlloked the simple stuff...
3) This obviouly happened when I installed the third Apache with PHP4 support. Can you think of anything that could have caused this corruption. Here (http://www.php.net/manual/en/install.unix.apache2.php ) is a link that I used to install the PHP4 and Apache.
4) I have two sites configured in ISPConfig. Should they both be using the 192.168.2.50? I presume, yes, but where does the 192.168.2.51 and eth0:0 fall in? Is that just to run the ISPConfig interface?
Well, that's all I can think of. If I cannot clue in to anything from the above questions, I guess I will dive into a complete reinstall--eeeek!
Thanks Falko and Till for any additional help...
falko
18th October 2005, 21:41
1) How can I confirm that ISPConfig is writing to my main Apache?
2) Would you happen to have a copy of a basic FC4 Apache conf file w/ISPConfig installed that I could compare to? If you have it readily available...I am just hoping I haven't overlloked the simple stuff...
I think you should consider a complete re-install of the whole system. The current one seems to be pretty messed up...
3) This obviouly happened when I installed the third Apache with PHP4 support. Can you think of anything that could have caused this corruption. Here (http://www.php.net/manual/en/install.unix.apache2.php ) is a link that I used to install the PHP4 and Apache.
I guess this happened because you didn't use Fedora packages, but instead installed PHP4 manually.
4) I have two sites configured in ISPConfig. Should they both be using the 192.168.2.50? I presume, yes, but where does the 192.168.2.51 and eth0:0 fall in? Is that just to run the ISPConfig interface?
No, you can run all on just one IP address. I guess you're referring to the section "Configure Additional IP Addresses" on http://www.howtoforge.com/perfect_setup_fedora_core_4_p3. This is just to demonstrate how to add additional IP addresses if you need them. E.g., if you have multiple SSL web sites, then you need one IP address per SSL web site.
ctroyp
18th October 2005, 22:26
I think you should consider a complete re-install of the whole system. The current one seems to be pretty messed up...
You have confirmed my fate... :(
At least I have learned a couple things not to do.
I guess this happened because you didn't use Fedora packages, but instead installed PHP4 manually.
I will look up info on how to use the packages next time. Can I select PHP4 during the Fedora install?
No, you can run all on just one IP address. I guess you're referring to the section "Configure Additional IP Addresses" on http://www.howtoforge.com/perfect_setup_fedora_core_4_p3. This is just to demonstrate how to add additional IP addresses if you need them. E.g., if you have multiple SSL web sites, then you need one IP address per SSL web site.
Makes sense now...thanks for explaining.
falko
18th October 2005, 23:42
I will look up info on how to use the packages next time. Can I select PHP4 during the Fedora install?
You can search for PHP packages with yum search php
ctroyp
18th October 2005, 23:54
Thanks Falko...I won't bore you with my ignorance any longer.
I will read up on Yum.
Thanks again for all the help.
I will let you know how things turn out...
ctroyp
22nd October 2005, 04:41
You can search for PHP packages with yum search php
Falko,
I am in the process of reinstalling my server. I am at the point in the FC4 perfect setup where it directs me to install Apache with PHP5.
Apache With PHP5
apt-get install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick
Now edit /etc/httpd/conf.d/php.conf and comment out the AddHandler and AddType lines:
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php5_module modules/libphp5.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
#AddHandler php5-script .php
#AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
How do I need to change these commands to install PHP4.4.0? I don't want to get into the mess I did last time with PHP5 on my main Apache, although the ISPConfig Apache PHP5 will still be installed after the main Apache.
Thanks,
Troy
till
22nd October 2005, 13:32
I'am not sure if FC4 comes with php4 at all. Did you get any results if you run:
yum search php4
ctroyp
22nd October 2005, 15:30
I'am not sure if FC4 comes with php4 at all. Did you get any results if you run:
yum search php4
Here are the results:
[root@server1 ~]# yum search php4
Searching Packages:
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 343 kB 00:02
updates-re: ################################################## 967/967
Added 35 new packages, deleted 23 old in 3.06 seconds
primary.xml.gz 100% |=========================| 877 kB 00:05
extras : ################################################## 2440/2440
Added 2 new packages, deleted 204 old in 6.00 seconds
squirrelmail.noarch 1.4.4-2 base
Matched from:
SquirrelMail is a standards-based webmail package written in PHP4. It
includes built-in pure PHP support for the IMAP and SMTP protocols, and
all pages render in pure HTML 4.0 (with no Javascript) for maximum
compatibility across browsers. It has very few requirements and is very
easy to configure and install. SquirrelMail has all the functionality
you would want from an email client, including strong MIME support,
address books, and folder manipulation.
squirrelmail.noarch 1.4.6-0.cvs20050812.1. updates-released
Matched from:
SquirrelMail is a standards-based webmail package written in PHP4. It
includes built-in pure PHP support for the IMAP and SMTP protocols, and
all pages render in pure HTML 4.0 (with no Javascript) for maximum
compatibility across browsers. It has very few requirements and is very
easy to configure and install. SquirrelMail has all the functionality
you would want from an email client, including strong MIME support,
address books, and folder manipulation.
[root@server1 ~]# updatedb
[root@server1 ~]# locate php4
/usr/share/swig/1.3.24/php4
/usr/share/swig/1.3.24/php4/std_pair.i
/usr/share/swig/1.3.24/php4/typemaps.i
/usr/share/swig/1.3.24/php4/std_map.i
/usr/share/swig/1.3.24/php4/php4kw.swg
/usr/share/swig/1.3.24/php4/php4.swg
/usr/share/swig/1.3.24/php4/php4run.swg
/usr/share/swig/1.3.24/php4/std_string.i
/usr/share/swig/1.3.24/php4/std_vector.i
/usr/share/swig/1.3.24/php4/std_common.i
/usr/share/swig/1.3.24/php4/utils.i
[root@server1 ~]#
till
22nd October 2005, 16:03
It looks like there are no PHP4 packages available for Fedora Core 4. So you have to use the PHP5 packages or compile and install PHP manually, which I can not recommend.
ctroyp
22nd October 2005, 16:13
It looks like there are no PHP4 packages available for Fedora Core 4. So you have to use the PHP5 packages or compile and install PHP manually, which I can not recommend.
I guess I don't have a choice. I will either have to install PHP manually or use another Linux distribution. Without PHP4, I cannot get PHPBB2, nor osCommerce to run.
Can you offer any recommendations on installing PHP4 manually? Last time I used the installation instructions from PHP.net and it did not go so well. This is why I had to reinstall my Fedora server. Would it be better to install Apache seperately, then install PHP4 afterwards?
falko
22nd October 2005, 17:02
This is how you compile PHP4 (in this case it's 4.3.9) with Apache 1.3:
tar xvfz php-4.3.9.tar.gz
cd php-4.3.9
./configure --with-apxs=/path/to/apxs --enable-track-vars --enable-sockets --with-config-file-path=/path/to/php.ini --enable-ftp --with-mysql=/usr
make
make install
Before running configure, you can find out about all configuration options with ./configure --help
The /path/to/apxs is important, that integrates PHP into your Apache. For Apache2 it's --with-apxs2=/path/to/apxs2 (I think but I'm not quite sure right now...).
After you've compiled PHP you have to restart Apache.
ctroyp
22nd October 2005, 17:09
Okay. I plan to install Apache2 first, then I will move to the php.net installation instructions which are relevant to Apache2. Only thing, I will have to change the apxs2 path.
I think I can handle this. At least this will be the first and ONLY Apache install on my system until I install ISPConfig. :)
Thanks for posting the example...
ctroyp
22nd October 2005, 20:36
It looks like PHP4 installed okay by using:
./configure --with-apxs2=/usr/sbin/apxs --enable-track-vars --enable-sockets --with-config-file-path=/etc/php.ini --enable-ftp --with-mysql
make
make install
After installing, then restarting httpd I tried to search for my php.ini file and could not locate it. Notice above that I used "--with-config-file-path=/etc/php.ini". I couldn't find it in that location either.
I ran updatedb and searched and it only found one instance of php.ini which is in the PHP-4.4.0 directory which is was was uncompressed from the .gz file.
Any idea what happened? Should I ignore it or did I miss something that you can think of?
ctroyp
22nd October 2005, 20:43
BTW, for others reading this thread, I had to install http-devel to get aspx2 before configuring the PHP4 install:
yum install httpd-devel
ctroyp
22nd October 2005, 21:00
I entered a test .php file to my html directory and opened it in the browser and it seems o be working okay.
Here is the code for the test file test.php:
<?php
echo phpinfo();
?>
The results:
PHP Version 4.4.0
System Linux server1.strec.com 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686
Build Date Oct 22 2005 12:25:30
Configure Command './configure' '--with-apxs2=/usr/sbin/apxs' '--enable-track-vars' '--enable-sockets' '--with-config-file-path=/etc/php.ini' '--enable-ftp' '--with-mysql'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp
I still don't know why I cannot find the php.ini or php.conf file???
falko
23rd October 2005, 13:24
I ran updatedb and searched and it only found one instance of php.ini which is in the PHP-4.4.0 directory which is was was uncompressed from the .gz file.
Copy that php.ini to /etc and customize it to your needs. :) php.ini isn't copied automatically to the location you specified using ./configure, it just tells PHP where to look for a php.ini. If it doesn't find one there then PHP uses default values.
ctroyp
23rd October 2005, 18:19
Copy that php.ini to /etc and customize it to your needs. :) php.ini isn't copied automatically to the location you specified using ./configure, it just tells PHP where to look for a php.ini. If it doesn't find one there then PHP uses default values.
That was easy enough. Thanks!
I have everything installed now including ISPConfig. Problem is, when I try to access www.mydomain1.com it doesn't open the site. Actually, it doesn't do anything at all; it just stays on the current page I am at--my browser home page. This is what was happening before I had to reinstall???
I can access www.mydomain1.com:81 to get to the ISPConfig panel, phpmyadmin, etc, but I cannot reach the website home page from www.mydomain1.com. :confused:
It does the same when I enter the public IP--it doesn't go anywhere even if I enter http://mywanIP:80
I did do a traceroute and it does arrive to my public WAN IP so it looks like the problem is here locally. It must be something in the main Apache install but can't figure out what???
till
23rd October 2005, 18:42
Some questions:
When you setup the website www.mydomain1.com in ISPConfig, you used your internal IP?
When you try to reach the website from inside your network, the DNS system resolves your external router IP? The port 80 is forwared from your router to your ISPConfig server?
If this is all OK, then your router might have a spoofing protection and blocks these requests that come from Internal IP => External IP => Internal IP.
But you can try this: On your windows client PC (I assume its windows?), that is inside your network, find the hosts file.
On my PC its in:
C:\windows\system32\drivers\etc\hosts
Add a line like this:
192.168.0.55 www.mydomain1.com
where the IP is your internal IP and the domain is your domain. This will override the normal DNS resolution for this PC for the domain. Then try to reach the domain in the browser on this PC.
ctroyp
23rd October 2005, 19:08
Some questions:
When you setup the website www.mydomain1.com in ISPConfig, you used your internal IP?
Yes, 192.168.2.50, which is the private IP of my Fedora server.
When you try to reach the website from inside your network, the DNS system resolves your external router IP? The port 80 is forwared from your router to your ISPConfig server?
Port 80 is forwarded to 192.168.2.50, yes. When I try to access 192.168.2.50, the Routers WAN IP, www.mydomain1.com, or any other mix on port 80, nothing happens--it doesn't even try to load a page. When I try from another computer on my network, I get "The page cannot be displayed" message. I presume it is the same trying to access from outside my network.
If this is all OK, then your router might have a spoofing protection and blocks these requests that come from Internal IP => External IP => Internal IP.
But you can try this: On your windows client PC (I assume its windows?), that is inside your network, find the hosts file.
On my PC its in:
C:\windows\system32\drivers\etc\hosts
Add a line like this:
192.168.0.55 www.mydomain1.com
where the IP is your internal IP and the domain is your domain. This will override the normal DNS resolution for this PC for the domain. Then try to reach the domain in the browser on this PC.
Yes, I have a WXP client. I tried it and I still get page not found...
On my Fedora server (where ISPConfig is installed), under network configuration, what should be in my hosts file: 127.0.0.1, or 192.168.2.50? Should I do something similar that you explained for the WXP client?
till
23rd October 2005, 19:19
On my Fedora server (where ISPConfig is installed), under network configuration, what should be in my hosts file: 127.0.0.1, or 192.168.2.50? Should I do something similar that you explained for the WXP client?
No, leave the hosts file untouched on your server for now.
Please open a console window on your windows PC and type in:
ping www.mydomain1.com
Which IP did ping show? It must be the internal IP if the entry in the hosts file is recognized.
If thats OK, to next step :)
On your Server, there must be a line like this in your apache configuration file:
Include /etc/apache/vhosts/Vhosts_ispconfig.conf
The line might be slightly different depending on your directories. The apache configuration file can be httpd.conf, apache.conf or apache2.conf.
If you found it, please post the content of the relevant vhost for www.mydomain1.com from the Vhosts_ispconfig.conf file.
ctroyp
23rd October 2005, 19:32
No, leave the hosts file untouched on your server for now.
Please open a console window on your windows PC and type in:
ping www.mydomain1.com
Which IP did ping show? It must be the internal IP if the entry in the hosts file is recognized.
"Reply from 192.168.2.50"
If thats OK, to next step :)
On your Server, there must be a line like this in your apache configuration file:
Include /etc/apache/vhosts/Vhosts_ispconfig.conf
The line might be slightly different depending on your directories. The apache configuration file can be httpd.conf, apache.conf or apache2.conf.
If you found it, please post the content of the relevant vhost for www.mydomain1.com from the Vhosts_ispconfig.conf file.
It is entered as:
Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
And here is the content for this file:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.2.50:80
#
#
######################################
# Vhost: www.mydomain1.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain1.com:80
ServerAdmin webmaster@mydomain1.com
DocumentRoot /home/www/web1/web
ServerAlias mydomain1.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mydomain2.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain2.com:80
ServerAdmin webmaster@mydomain2.com
DocumentRoot /home/www/web2/web
ServerAlias mydomain2.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web2/phptmp/
php_admin_value session.save_path /home/www/web2/phptmp/
Alias /error/ "/home/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
</VirtualHost>
#
#
#
BTW, I have replaced my actual domains with mydomain1 and mydomain2 for privacy. I can provide this info should you need it though.
ctroyp
23rd October 2005, 20:04
I ran a ping and traceroute for www.mydomain1.com from my Fedora server to see if it would return 192.168.2.50 like the WXP client did. Well, it did not. It returned my WAN (public) IP. This tells me that it is not routing to my private IP 192.168.2.50. Is this assumption correct?
till
23rd October 2005, 20:11
Your vhost config in the post above is OK.
I ran a ping and traceroute for www.mydomain1.com from my Fedora server to see if it would return 192.168.2.50 like the WXP client did. Well, it did not. It returned my WAN (public) IP. This tells me that it is not routing to my private IP 192.168.2.50. Is this assumption correct?
No, this behaviour is OK. Your Fedora box uses the normal DNS resolution.
Currently i have no idea what might be wrong in your setup :confused:
ctroyp
23rd October 2005, 20:24
Your vhost config in the post above is OK.
No, this behaviour is OK. Your Fedora box uses the normal DNS resolution.
Currently i have no idea what might be wrong in your setup :confused:
That's funny. Falko said the same thing just before I reinstalled my server. ;)
I just don't understand...this system worked perfectly before. Everything was functional until I tried installing PHPBB2 and osCommerce on one of my sites. Neither application would accept the main Apache's PHP5. This is when I attempted to downgrade to PHP4 and when this problem began. I reinstalled and started from scratch, but the only thing I did different was in "Fedora-The Perfect Setup" instructions, I didn't install PHP5 as directed, rather I installed PHP4. That is it though, I don't understand why it doesn't work. The vhosts seem correct, dns, routing, etc... I am lost too and am unsure where to go with this.
If PHPBB2 and osCommerce were compatable with PHP5, I wouldn't have a problem. They have mods for this, but they still didn't help. I think this system is cursed... :(
ctroyp
24th October 2005, 03:56
Just to update, I have been pulling my hair out trying to figure this problem out. It must have something to do with the PHP4 installation on my main Apache since the PHP5 setup with "The Perfect Setup" worked fine last time. With this in mind, does it clue you in to any possibilities?
falko
24th October 2005, 11:08
But Apache is running? Do you see it when you run netstat -tap? Can you also post the output of iptables -L?
Anything in the Apache error logs?
ctroyp
24th October 2005, 15:40
But Apache is running? Do you see it when you run netstat -tap
It appears to be:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e PID/Program name
tcp 0 0 *:imaps *:* LIST EN 2004/xinetd
tcp 0 0 *:32769 *:* LIST EN 1619/rpc.statd
tcp 0 0 *:pop3s *:* LIST EN 2004/xinetd
tcp 0 0 server1.strec.com:32775 *:* LIST EN 2699/nautilus
tcp 0 0 *:mysql *:* LIST EN 2095/mysqld
tcp 0 0 *:netbios-ssn *:* LIST EN 31168/smbd
tcp 0 0 *:pop3 *:* LIST EN 2004/xinetd
tcp 0 0 *:imap *:* LIST EN 2004/xinetd
tcp 0 0 *:sunrpc *:* LIST EN 1601/portmap
tcp 0 0 *:81 *:* LIST EN 27551/ispconfig_htt
tcp 0 0 *:ftp *:* LIST EN 28757/proftpd: (acc
tcp 0 0 server1.strec.com:ipp *:* LIST EN 15612/cupsd
tcp 0 0 server1.strec.com:5335 *:* LIST EN 1899/mDNSResponder
tcp 0 0 *:smtp *:* LIST EN 28725/master
tcp 0 0 *:microsoft-ds *:* LIST EN 31168/smbd
tcp 0 0 localhost:netbios-ssn localhost:4024 ESTA BLISHED 5199/smbd
tcp 0 0 server1.strec.com:42157 server1.strec.com:5335 ESTA BLISHED 2699/nautilus
tcp 0 0 server1.strec.com:5335 server1.strec.com:42157 ESTA BLISHED 1899/mDNSResponder
tcp 0 0 *:http *:* LIST EN 24070/httpd
ESTA BLISHED 7337/2
Can you also post the output of iptables -L?
Anything in the Apache error logs?
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (0 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
I looked through the logs and didn't see much rel. info. I will look again and see if something has popped up...thanks!
ctroyp
24th October 2005, 16:06
Here is something I found in the httpd error log that seems to generate during an httpd restart:
[Sun Oct 23 20:50:31 2005] [notice] caught SIGTERM, shutting down
[Sun Oct 23 20:50:32 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Oct 23 20:50:33 2005] [notice] Digest: generating secret for digest authentication ...
[Sun Oct 23 20:50:33 2005] [notice] Digest: done
[Sun Oct 23 20:50:33 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Oct 23 20:50:33 2005] [notice] LDAP: SSL support unavailable
[Sun Oct 23 20:50:33 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun Oct 23 20:50:34 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations
[Sun Oct 23 20:51:23 2005] [notice] child pid 24092 exit signal Segmentation fault (11)
[Sun Oct 23 20:52:12 2005] [notice] child pid 24093 exit signal Segmentation fault (11)
[Sun Oct 23 20:52:41 2005] [notice] child pid 24094 exit signal Segmentation fault (11)
[Sun Oct 23 20:52:44 2005] [notice] child pid 24095 exit signal Segmentation fault (11)
[Sun Oct 23 20:53:12 2005] [notice] child pid 24099 exit signal Segmentation fault (11)
[Sun Oct 23 21:12:17 2005] [notice] child pid 24100 exit signal Segmentation fault (11)
[Sun Oct 23 21:14:05 2005] [notice] child pid 24096 exit signal Segmentation fault (11)
[Sun Oct 23 21:40:06 2005] [notice] child pid 24098 exit signal Segmentation fault (11)
[Sun Oct 23 21:47:34 2005] [notice] child pid 24911 exit signal Segmentation fault (11)
[Sun Oct 23 22:11:49 2005] [notice] child pid 24473 exit signal Segmentation fault (11)
[Sun Oct 23 22:22:31 2005] [notice] child pid 24486 exit signal Segmentation fault (11)
[Sun Oct 23 23:09:23 2005] [notice] child pid 24949 exit signal Segmentation fault (11)
[Sun Oct 23 23:20:39 2005] [notice] child pid 26439 exit signal Segmentation fault (11)
[Mon Oct 24 00:40:44 2005] [notice] child pid 25790 exit signal Segmentation fault (11)
[Mon Oct 24 00:40:44 2005] [notice] child pid 25939 exit signal Segmentation fault (11)
[Mon Oct 24 00:40:44 2005] [notice] child pid 26654 exit signal Segmentation fault (11)
[Mon Oct 24 00:40:44 2005] [notice] child pid 27621 exit signal Segmentation fault (11)
In the ispconfig_access_log (in /etc/httpd/logs/) I found only one entry:
www.mydomain1.com||||309||||67.141.155.36 - - [23/Oct/2005:18:06:11 -0400] "GET / HTTP/1.0" 400 309 "-" "-"
Any other logs to look at?
falko
24th October 2005, 17:14
Hm, your firewall seems to be ok, but your Apache is dying for some reason, and it's hard to find out why without having a look at the machine...
Is it necessary that you stick to Fedora? If not I'd suggest you try the Debian setup ( http://www.howtoforge.com/perfect_setup_debian_sarge ), it comes with PHP4 (btw, there are also PHP5 packages available for Debian).
ctroyp
24th October 2005, 17:17
What do you mean Apache is dying?
falko
24th October 2005, 17:55
It stops working...
ctroyp
24th October 2005, 17:59
It stops working...
I meant, what indicated that it stopped working? I must have missed that in the info I posted...
falko
24th October 2005, 18:04
I meant, what indicated that it stopped working? I must have missed that in the info I posted...
In the log it reads exit signal Segmentation fault (11)
ctroyp
24th October 2005, 21:17
Is it necessary that you stick to Fedora?
I would like to stick with Fedora if at all possible...
That said, I may try to use a different version of PHP for the Main Apache. But, before I do anything, I need to check for some hardware problems, namely memory. After googling, I found many different solutions for the segfault. I will reseat the memory sticks to see if it helps, but I am not too sure that is the problem. The second most popular solution was a mod_php4 issue. I'm not too sure what to do there beyond up/downgrading the PHP version again.
If I don't have any success there, who knows, I will either have to stick with PHP5 and find other solutions besides PHPBB2 and osCommerce, or let one of you guys SSH into my system to try and locate the problem. I feel that I am a good at troubleshooting problems, but it is hard when I only have a couple weeks of experience with Linux itself...
ctroyp
25th October 2005, 16:31
I ran Apache in debug mode and found that the error (SegFault) occurs only when I try to access a page from either of my ISPConfig websites. I can successfully access anything on port 81 (CP, PHPMyAdmin, etc).
Here is the error that comes up:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208805696 (LWP 32588)]
php_apache_sapi_get_stat () at /StrecDownloads/php-4.4.0/sapi/apache2handler/sapi_apache2.c:173
173 ctx->finfo.st_uid = ctx->r->finfo.user;
and here is the backtrace for it:
(gdb) bt
#0 php_apache_sapi_get_stat () at /StrecDownloads/php-4.4.0/sapi/apache2handler/sapi_apache2.c:173
#1 0x010375bb in php_statpage () at /StrecDownloads/php-4.4.0/ext/standard/pageinfo.c:73
#2 0x0103761b in php_getuid () at /StrecDownloads/php-4.4.0/ext/standard/pageinfo.c:99
#3 0x0107411f in php_checkuid_ex (filename=Variable "filename" is not available.
) at /StrecDownloads/php-4.4.0/main/safe_mode.c:150
#4 0x010743e6 in php_checkuid (filename=0x95b096c "/home/www/web1/phptmp/", fopen_mode=0x0, mode=3)
at /StrecDownloads/php-4.4.0/main/safe_mode.c:191
#5 0x01000bb4 in OnUpdateSaveDir (entry=0x95996d0, new_value=0x95b096c "/home/www/web1/phptmp/", new_value_length=22,
mh_arg1=0x0, mh_arg2=0x110a420, mh_arg3=0x0, stage=16) at /StrecDownloads/php-4.4.0/ext/session/session.c:123
#6 0x0109f816 in zend_alter_ini_entry (name=0x9551c90 "session.save_path", name_length=18,
new_value=0x9458f20 "/home/www/web1/phptmp/", new_value_length=22, modify_type=4, stage=16)
at /StrecDownloads/php-4.4.0/Zend/zend_ini.c:232
#7 0x010b21d5 in apply_config (dummy=0x9458e00) at /StrecDownloads/php-4.4.0/sapi/apache2handler/apache_config.c:167
#8 0x010b1686 in php_handler (r=0x95fae38) at /StrecDownloads/php-4.4.0/sapi/apache2handler/sapi_apache2.c:457
#9 0x00759f3c in ap_run_handler () from /usr/sbin/httpd
#10 0x0075a2d7 in ap_invoke_handler () from /usr/sbin/httpd
#11 0x00756e11 in ap_process_request () from /usr/sbin/httpd
#12 0x00751693 in _start () from /usr/sbin/httpd
#13 0x00764afb in ap_run_process_connection () from /usr/sbin/httpd
#14 0x00764e30 in ap_process_connection () from /usr/sbin/httpd
#15 0x00757d9e in ap_graceful_stop_signalled () from /usr/sbin/httpd
#16 0x0075800e in ap_graceful_stop_signalled () from /usr/sbin/httpd
#17 0x0075812a in ap_graceful_stop_signalled () from /usr/sbin/httpd
#18 0x00758b0b in ap_mpm_run () from /usr/sbin/httpd
#19 0x0075f88e in main () from /usr/sbin/httpd
At first sight, does this mean anything to you?
I notice that the "StrecDownloads" directory is still being accessed. Should the PHP-4.4.0 directory have been placed in another location? This is the directory where I download installation files from the internet.
Someone reported this as a bug here (http://bugs.php.net/bug.php?id=33690&edit=1) and Ramsus Lerdorf supplied a fix here. (http://news.php.net/php.internals/17261)
I am going to try and apply the patch to see if it helps...
ctroyp
25th October 2005, 18:43
Great news! I figured it out! It was a bug within PHP4...
Of course there is always something else, but at least my problems have been scaled down. When I access the home page for one of my websites, it displays properly, with the exception of an error message at the top that reads:
Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid is 0
is not allowed to access /home/www/web1/phptmp owned by uid 10001 in Unknown on
line 0
Any ideas?
-
till
25th October 2005, 18:46
Yes, the PHP script is owned by root but it must be owned by the administrator user of the web.
ctroyp
25th October 2005, 18:51
Which script though? How do I fix this?
till
25th October 2005, 18:58
Which script though?
The script that you called when you got this error.
How do I fix this?
Use the chown command or simply use FTP to upload the PHP files!
The parameters of the chown command are as follows:
chown -R nameofwebadminuser:groupoftheweb /directory/of/the/website/
ctroyp
25th October 2005, 19:06
That makes sense, but all I did was pull up www.mydomain1.com and it displayed the message. I presume it is referring to an internal script. So if I chmod the /home/www/web1/ directory for my relevant ISPConfig site admin, it should work?
I'll give it a try, just wanted to assure I understand...thanks!
falko
25th October 2005, 19:28
That makes sense, but all I did was pull up www.mydomain1.com and it displayed the message. I presume it is referring to an internal script.
Then you should look for a script called index.php, index.php3, index.php4, default.php, etc. in your /home/www/web1/web directory. That's the one that has been called.
ctroyp
25th October 2005, 20:31
Then you should look for a script called index.php, index.php3, index.php4, default.php, etc. in your /home/www/web1/web directory. That's the one that has been called.
Well, I don't have any form of 'php' in the web directory. The only thing in that directory is: error and stats directories, and index.html.
I did the chmod and it didn't help either. :confused:
till
25th October 2005, 21:10
The error is definetly from a PHP script and ISPConfig does not install any PHP script in the web directory when a new web is created.
So I assume that the script must be in any other directory. Do you have any PHP applications installed in the default web (/var/www) ?
ctroyp
25th October 2005, 21:24
The error is definetly from a PHP script and ISPConfig does not install any PHP script in the web directory when a new web is created.
So I assume that the script must be in any other directory. Do you have any PHP applications installed in the default web (/var/www) ?
I have one php file (contact.php) in my web2 directory. I removed it and searched the /var/www directory as well as the others with a fine tooth comb. I cannot find anything with php in the file/directory names except the 'phptmp' directories.
Question, if safe mode is disabled in my /etc/php.ini, would this error still show up? I have it turned off...
ctroyp
25th October 2005, 21:45
I received a localhost email that alerted me that some services were not running. I first checked the netstat:
[root@server1 web]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 2004/xinetd
tcp 0 0 *:32769 *:* LISTEN 1619/rpc.statd
tcp 0 0 *:pop3s *:* LISTEN 2004/xinetd
tcp 0 0 server1.strec.com:32775 *:* LISTEN 2699/nautilus
tcp 0 0 *:mysql *:* LISTEN 2095/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 31168/smbd
tcp 0 0 *:pop3 *:* LISTEN 2004/xinetd
tcp 0 0 *:imap *:* LISTEN 2004/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 1601/portmap
tcp 0 0 *:81 *:* LISTEN 27551/ispconfig_htt
tcp 0 0 *:ftp *:* LISTEN 20723/proftpd: (acc
tcp 0 0 server1.strec.com:ipp *:* LISTEN 15612/cupsd
tcp 0 0 server1.strec.com:5335 *:* LISTEN 1899/mDNSResponder
tcp 0 0 *:smtp *:* LISTEN 20752/master
tcp 0 0 *:microsoft-ds *:* LISTEN 31168/smbd
tcp 0 0 localhost:netbios-ssn localhost:4024 ESTABLISHED 5199/smbd
tcp 0 0 server1.strec.com:42157 server1.strec.com:5335 ESTABLISHED 2699/nautilus
tcp 0 0 server1.strec.com:5335 server1.strec.com:42157 ESTABLISHED 1899/mDNSResponder
tcp 0 0 *:http *:* LISTEN 10987/httpd
tcp 0 0 *:ssh *:* LISTEN 1995/sshd
tcp 0 0 *:https *:* LISTEN 10987/httpd
Then opened the ISPConfig CP and went to the ISP Services page, under management:
Web-Server: Offline
FTP-Server: Offline
SMTP-Server: Offline
POP3-Server: Offline
BIND-Server: Offline
mySQL-Server: Online
Why would they be offline? I wasn't successful trying to restart them.
till
25th October 2005, 22:15
When yu cant stert them, you should either get error messages on the shell during restart or in the error logs.
till
25th October 2005, 22:16
I have one php file (contact.php) in my web2 directory. I removed it and searched the /var/www directory as well as the others with a fine tooth comb. I cannot find anything with php in the file/directory names except the 'phptmp' directories.
Question, if safe mode is disabled in my /etc/php.ini, would this error still show up? I have it turned off...
That depends on you php.ini. Maybe you have enabled safemode as default as you configured and compiled your PHP.
ctroyp
25th October 2005, 22:20
That depends on you php.ini. Maybe you have enabled safemode as default as you configured and compiled your PHP.
No, it is turned off in php.ini and I did not enable it when configuring/compiling:
./configure --with-apxs2=/usr/sbin/apxs --enable-debug --enable-track-vars --enable-sockets --with-config-file-path=/etc/php.ini --enable-ftp --with-mysq
...unless debug turns it on.
This wouldn't be the ISPConfig php5, right?
ctroyp
25th October 2005, 22:28
When yu cant stert them, you should either get error messages on the shell during restart or in the error logs.
Here is what was entered into the error log for ISPConfig Apache after a command line restart:
[Tue Oct 25 15:25:35 2005] [notice] SIGHUP received. Attempting to restart
[Tue Oct 25 15:25:35 2005] [notice] Apache/1.3.33 (Unix) PHP/5.0.4 mod_ssl/2.8.23 OpenSSL/0.9.8 configured -- resuming normal operations
[Tue Oct 25 15:25:35 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
Checked the ISPConfig CP and it still says Offline for Web-server.
Wither way, the netstat says it is running:
tcp 0 0 *:81 *:* LISTEN 27551/ispconfig_htt
till
25th October 2005, 22:36
You are mixing up the ISPConfig apache and your normal apache. The apache on port 81 is ONLY for the controlpanel and has nothing to do with the webpages you are hosting. When it shows webserver offline in the controlpanel, your normal webserver is meant, not the ISPConfig webserver. If the ISPConfig server would be offline, wont have seen the page ;)
ctroyp
25th October 2005, 22:40
You are mixing up the ISPConfig apache and your normal apache. The apache on port 81 is ONLY for the controlpanel and has nothing to do with the webpages you are hosting. When it shows webserver offline in the controlpanel, your normal webserver is meant, not the ISPConfig webserver. If the ISPConfig server would be offline, wont have seen the page ;)
:rolleyes: Sorry, bare with me... ;)
ctroyp
25th October 2005, 22:52
Either way, I guess, both are showing as running under netstat. The ISPConfig CP must not be reporting it accurately for some reason. Nevertheless, I will ignore it for now, I just wanted to make sure it didn't have anything to do with my problem.
I am wondering...when I installed php-4.4.0, it did not install php.ini in /etc/, but I configured it to access it from there. Falko said to just copy one from the php-4.4.0 directory and place it in /etc/ and since I configured PHP to access from that location, it makes me wonder if it is really using that file...
I copied the php.ini-recommended and renamed it to php.ini. I ensured Safe mode was turned off and restarted httpd, but I still get:
Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /home/www/web1/phptmp owned by uid 10001 in Unknown on line 0 when accessing the home web page.
I am finally starting to get frustrated about this. You guys have taught me a ton and I will pay you back somehow for it. I feel like I have gone too far to switch my Linux distro or just use php5. I hope to get this to work with FC4, PHP4, PHPBB2, ISPConfig, etc., but I think I am starting to wear you guys out too.
Anyhow, if you have any final suggestions, I would really appreciate it.
Thanks, Troy
ctroyp
25th October 2005, 23:40
Falko/Till, is Debian Sarge 3.1 and Debian GNU/Linux one in the same? If not, which does "The Perfect Setup" cover. I am also considering Mandrake since it also comes with PHP4.
Also, what version of MySQL will be installed?
falko
26th October 2005, 00:40
I copied the php.ini-recommended and renamed it to php.ini. I ensured Safe mode was turned off and restarted httpd, but I still get:
Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /home/www/web1/phptmp owned by uid 10001 in Unknown on line 0 when accessing the home web page.
Maybe you have enabled PHP Safe Mode for the web site in ISPConfig?
Falko/Till, is Debian Sarge 3.1 and Debian GNU/Linux one in the same? If not, which does "The Perfect Setup" cover. I am also considering Mandrake since it also comes with PHP4.
Also, what version of MySQL will be installed?
Debian Sarge (= Debian 3.1) is the latest version of Debian GNU/Linux.
I'm not quite sure about the MySQL version in Sarge, but I think it's 4.0.24.
ctroyp
26th October 2005, 01:24
Maybe you have enabled PHP Safe Mode for the web site in ISPConfig?
Not sure how/why I would have done that, but I did. Maybe my clicking finger got excited.
Anyways, that did the trick. I can access the websites fine now with one exception...I am getting another segfault when I try to install phpBB2...imagine that! :eek:
Oh well, I may try to debug it, but I'm a little brain tired for now. Thanks for all the help guys. I may just jump into Debian, who knows at this point, because I keep having problem after problem with the current setup.
ctroyp
31st October 2005, 19:08
I wanted to inform you guys that I have successfully installed debian sarge with ISPConfig, APache2, PHP4, phpBB2, and all the rest. I was able to flawlessly recreate my websites and ftp the web files. Everything seems to be working great.
#1
During setup using Debian The Perfect Setup, I encountered a contradiction of settings for postfix. After installing and configuring postfix per instruction, I viewed the /etc/postfix/main.cf file and noticed only one difference...
I didn't have anything set for smtpd_sasl_local_domain, but I noticed the example provided says that it should be, "smtpd_sasl_local_domain = $myhostname". Can someone clarify which it should be?
#2
I observed in Management -> Server -> Status -> Main Memory that my free memory seemed very low. This is what it displayed:
MemTotal: 256568 kB
MemFree: 13172 kB
falko
31st October 2005, 19:49
#1
During setup using Debian The Perfect Setup, I encountered a contradiction of settings for postfix. After installing and configuring postfix per instruction, I viewed the /etc/postfix/main.cf file and noticed only one difference...
I didn't have anything set for smtpd_sasl_local_domain, but I noticed the example provided says that it should be, "smtpd_sasl_local_domain = $myhostname". Can someone clarify which it should be?
It should be smtpd_sasl_local_domain =
I've corrected that in the howto.
#2
I observed in Management -> Server -> Status -> Main Memory that my free memory seemed very low. This is what it displayed:
MemTotal: 256568 kB
MemFree: 13172 kB
Should be ok. If the server is in heavy use, you should however keep an eye on it.
ctroyp
31st October 2005, 23:31
Another thing I forgot to mention is that I did not get the expected results for "telnet localhost 25" and "ehlo localhost". I should have seen the "250-STARTTLS" and "250-AUTH", correct?
btw, this was after I removed the "$myhostname" from "smtpd_sasl_local_domain =".
falko
1st November 2005, 00:20
What happens if you have smtpd_sasl_local_domain = $myhostname in /etc/postfix/main.cf? Don't forget to restart Postfix after the change.
ctroyp
2nd November 2005, 18:19
What happens if you have smtpd_sasl_local_domain = $myhostname in /etc/postfix/main.cf? Don't forget to restart Postfix after the change.
I had already tried this and got the same results.
Sorry it took so long to respond, my wife and I just had a baby and we have been int the hospital the las couple days...IT's A BOY!!!
falko
2nd November 2005, 18:42
Sorry it took so long to respond, my wife and I just had a baby and we have been int the hospital the las couple days...IT's A BOY!!!
Congratulations!!! :)
I had already tried this and got the same results.
Maybe a firewall issue... :confused:
ctroyp
3rd November 2005, 23:41
Congratulations!!! :)
Maybe a firewall issue... :confused:
The only firewall I have currently is through my router. I didn't have this problem before with the Fedora setup, but I will dig aroud to see what I can find out...thanks!
ctroyp
9th November 2005, 05:40
Was there a firewall installed during the Sarge setup that I may have missed. I cannot figure out why the I cannot successfully test the postfix with ehlo localhost. Everything else has been running perfectly. Any ideas?
When I enter 'telnet localhost 25'
I get:
/root$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.
If I try it again, I get the same thing but it doesn't close. I enter the 'ehlo localhost' and nothing else happens.
falko
9th November 2005, 10:41
What's in /etc/postfix/main.cf as myhostname or mydomain? You normally get this if myhostname/mydomain don't exist in DNS...
ctroyp
9th November 2005, 16:53
What's in /etc/postfix/main.cf as myhostname or mydomain? You normally get this if myhostname/mydomain don't exist in DNS...
myhostname = server1.strec.com
Where do I find the DNS tables on my machine?
falko
9th November 2005, 17:20
This is what I found out:
dig server1.strec.com
; <<>> DiG 9.2.1 <<>> server1.strec.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33097
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;server1.strec.com. IN A
;; AUTHORITY SECTION:
strec.com. 3600 IN SOA this--domain--for-sale.com. dnsmaster.this--domain--for-sale.com. 2001090106 3600 1200 3600000 3600
;; Query time: 229 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Wed Nov 9 16:18:47 2005
;; MSG SIZE rcvd: 104
This means server1.strec.com doesn't exist in DNS. The DNS server that is responsible for strec.com is this--domain--for-sale.com. You must create the DNS record there.
ctroyp
9th November 2005, 18:06
Well, that must be the problem then. I do not own strec.com. :D This is only my local network domain. Do I need to enter my actual public domain?
falko
9th November 2005, 18:50
Do I need to enter my actual public domain?
:rolleyes: You should do so... :)
ctroyp
9th November 2005, 21:05
:rolleyes: You should do so... :)
So this would need to be my WAN IP address. I do not actually have a public domain name except for the websites that I host.
Here is the contents of /etc/postfix/main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = server1.strec.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.strec.com, localhost.strec.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = nonanonymous
broken_sasl_auth_clients = yes
smptd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
falko
10th November 2005, 01:31
You can try to use one of the domain names you host in myhostname. But it would be better to create a subdomain of its own for the server, like server1.domain.com, and use that in myhostname.
till
10th November 2005, 10:15
Please do not post any new topics to this thraed. It already contains many different topics. This thread will be closed afte the current issue is solved. Please make a new thread for each topic.
ctroyp
10th November 2005, 14:24
Please do not post any new topics to this thraed. It already contains many different topics. This thread will be closed afte the current issue is solved. Please make a new thread for each topic.
Ok, sorry.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.