Help - Search - Members - Calendar
Full Version: problem restarting apache
The Planet Forums > Control Panels > Plesk
snowcrash
hi all,

i have a problem with my apache-config while trying to restart the apache:
[php]
[root@plesk bin]# pwd
/usr/local/psa/apache/bin
[root@plesk bin]# ./httpd restart
[error] Can't locate Apache.pm in @INC
(@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
/usr/local/psa/apache/
/usr/local/psa/apache/lib/perl
) at (eval 1) line 3.

[warn] NameVirtualHost 216.bla.9:443 has no VirtualHosts
[/php]

I dont know why there is defenition for port 443. the plesk is workin fine on 8443.

here is my httpd.include (sorry for the long post)
[php]
NameVirtualHost 216.bla.9:80
NameVirtualHost 216.bla.9:443

ServerName www.worldpoliticsforum.com
ServerAdmin admin@localhost.net

DocumentRoot /usr/local/psa/home/vhosts/default/htdocs


AllowOverride All
Options MultiViews SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off



ServerName default
UseCanonicalName Off
DocumentRoot /usr/local/psa/home/vhosts/default/htdocs
ScriptAlias /cgi-bin/ "/usr/local/psa/home/vhosts/default/cgi-bin/"

SSLEngine off


AllowOverride None
Options None
Order allow,deny
Allow from all






ServerName default
UseCanonicalName Off
DocumentRoot /usr/local/psa/home/vhosts/default/httpsdocs
ScriptAlias /cgi-bin/ "/usr/local/psa/home/vhosts/default/cgi-bin/"
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/apache/conf/httpd.pem

AllowOverride None
Options None
Order allow,deny
Allow from all


SSLRequireSSL








DocumentRoot /usr/local/psa/home/vhosts/default/httpsdocs
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/apache/conf/httpd.pem





DocumentRoot /usr/local/psa/home/vhosts/webmail/horde/imp
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off


php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value open_basedir "/usr/local/psa/home/vhosts/webmail:/etc/psa:/tmp"
php_admin_value include_path "/usr/local/psa/home/vhosts/webmail/horde/phplib:."
php_admin_value auto_prepend_file "/usr/local/psa/home/vhosts/webmail/horde/phplib/prepend.php3"








DocumentRoot /usr/local/psa/home/vhosts/webmail/horde/imp
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off


php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value open_basedir "/usr/local/psa/home/vhosts/webmail:/etc/psa:/tmp"
php_admin_value include_path "/usr/local/psa/home/vhosts/webmail/horde/phplib:."
php_admin_value auto_prepend_file "/usr/local/psa/home/vhosts/webmail/horde/phplib/prepend.php3"

SSLRequireSSL







ServerName xxxxxx
User web003
Group psacln
DocumentRoot /usr/local/psa/home/vhosts/xxxxxx/httpdocs
CustomLog /usr/local/psa/home/vhosts/xxxxxx/logs/access_log combined
ErrorLog /usr/local/psa/home/vhosts/xxxxxx/logs/error_log
AliasMatch ^/~([^/].*) /usr/local/psa/home/vhosts/xxxxxx/web_users/$1
ScriptAlias /cgi-bin/ /usr/local/psa/home/vhosts/xxxxxx/cgi-bin/

SSLEngine off




SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On



php_admin_flag engine on
php_admin_value open_basedir "/usr/local/psa/home/vhosts/xxxxxx/httpdocs"

Options +Includes +ExecCGI

Alias "/error_docs" "/usr/local/psa/home/vhosts/xxxxxx/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html



ServerName yyyyyy
User web008
Group psacln
DocumentRoot /usr/local/psa/home/vhosts/yyyyyy/httpdocs
CustomLog /usr/local/psa/home/vhosts/yyyyyy/logs/access_log combined
ErrorLog /usr/local/psa/home/vhosts/yyyyyy/logs/error_log
AliasMatch ^/~([^/].*) /usr/local/psa/home/vhosts/yyyyyy/web_users/$1
ScriptAlias /cgi-bin/ /usr/local/psa/home/vhosts/yyyyyy/cgi-bin/

SSLEngine off




SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On



php_admin_flag engine on
php_admin_value open_basedir "/usr/local/psa/home/vhosts/yyyyyy/httpdocs"

Options +Includes +ExecCGI

Alias "/error_docs" "/usr/local/psa/home/vhosts/yyyyyy.de/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html



...

[/php]

has anybody suggestions how to make a restart that my php.ini will be refreshed?

thanks a lot and maybe somebody can help icon_smile.gif
regards snowcrash
Jonathan
On my Plesk server Apache.pm is located in

/usr/lib/perl5/5.6.0/CGI/Apache.pm

Try doing a "locate Apache.pm", if it finds it then check it is in a location that @INC is looking for it in. If it isn't then copy it to one of the directories it is looking.

Hope this helps.
i wuv wock
Yeah had the same thing on my box. A few files are not put in the correct place by the default installation. Running the following as root fixed the problem:

ln -s /usr/lib/perl5/5.6.0/CGI/Apache.pm /usr/lib/perl5/site_perl/Apache.pm
ln -s /usr/local/psa/apache/lib/perl/site_perl/5.005/i386-linux/mod_perl.pm /usr/lib/perl5/site_perl/mod_perl.pm
ln -s /usr/local/psa/apache/lib/perl/site_perl/5.005/i386-linux/Apache /usr/lib/perl5/site_perl/Apache

USE AT YOUR OWN RISK OF COURSE! icon_smile.gif
snowcrash
Hi all,

sorry, looked like I made a mistake .
somebody at work said that i have to restart apache so:
/usr/local/psa/apache/bin/apachectl restart

Then there also comes no errors.
Its maybbe for somebodies interesting.

Thanks for your help
regards snowcrash
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.