Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

apache fails to start up, but says Syntax OK

Posted on 2006-10-29
2
317 Views
Last Modified: 2010-03-04
I'm using perl + mysql to generate my vhosts

this is the script:

<Perl>
use DBI;
my ($sth, $dbh, $domain, $domainID, $createdTS, $created, $sql);
$dbh = DBI->connect("DBI:mysql:domain:xxx","xxxx","xxxx");
$sth = $dbh->prepare("SELECT * FROM domain");
$sth->execute();
while (($domainID, $domain, $created) = $sth->fetchrow())
{
        if($created == 0)
        {
                system("/bin/mkdir /home/$domain");
                system("/bin/mkdir /home/$domain/www");
                system("/bin/mkdir /home/$domain/ErrorLog");
                system("/bin/chown apache:apache -R /home/$domain");
                $sql = $dbh->prepare("UPDATE domain SET created = 1 WHERE domainID = $domainID");
                $sql->execute();
        }
        push @{$VirtualHost{"*:80"}}, {
                ServerName      => $domain,
                ServerAlias    => "www.$domain",
                DocumentRoot    => "/home/$domain/www",
                ErrorLog        => "/home/$domain/ErrorLog",
        };
}
</Perl>

but when I try to reload apache with "apachectl graceful" it gives me this error:

apachectl: Configuration syntax error, will not run "graceful":
Syntax OK

and if I run apachectl configtest it says "Syntax OK"

But if I remove the perlscript everything works just fine...

the perl-script is in a seperat filem and is included

. I am running Fedora 6 + apache 2
0
Comment
Question by:ttopholm
2 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 250 total points
ID: 17832164
Can You check the main error_log from apache after trying graceful?
0
 

Author Comment

by:ttopholm
ID: 17832864
My definition of the errorlogfile was uncorrect, thank you
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Leverage Browser Caching 7 75
Xampp Not Stopping 9 42
.htaccess rewrite url with querystring problem 13 101
.htaccess css/images no longer loading 4 38
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question