[nylug-talk] VirtualDocumentRoot and PHP

Ruben Safir ruben at mrbrklyn.com
Sun Feb 4 00:12:38 EST 2007


> < LoadModule php4_module /usr/lib/apache2/modules/libphp4.so
> <
> < <IfModule mod_php4.c>
> <   AddType application/x-httpd-php .php .phtml .php3
> <   AddType application/x-httpd-php-source .phps
> < </IfModule>
> 
> The error message I get is this...
> NameVirtualHost *:0 has no VirtualHosts
> 
> (and google gives me a nice run-around on that:-)


There is too much noise in this question.  What is the error, what do the logs 
say and what does your config file say.  It looks to me like a simple
problem in the configuration file.

Meanwhile look for a sectiont hat looks like this

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin webmaster at 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>

	
> (and of course, there are domains defined in
> sites-enabled and sites-available)
> 
> 
> I'd appreciate any pointers.
> BTW, it is my guess that a proper mass-hosting install
> has very little proprietary/security info in it,
> if diagnosis requires a look at the actual config,
> I can do that.
> 
> 
> BTW, isn't this something that everyone and their brother
> wants to do?  It is STILL a pleasure adding domains
> to my apache 1.3 server.  It's just time to move up.
> (remember that post about sharing costs with a friend?
> he really wants Apache2, and I really want mass hosting :-)
> 
> Thanks
> Seth
> 
> 
> _____________________________________________________________________________
> Hire expert Linux talent by posting jobs here :: http://jobs.nylug.org
> The nylug-talk mailing list is at nylug-talk at nylug.org
> The list archive is at http://nylug.org/pipermail/nylug-talk
> To subscribe or unsubscribe: http://nylug.org/mailman/listinfo/nylug-talk

-- 
http://www.mrbrklyn.com - Interesting Stuff
http://www.nylxs.com - Leadership Development in Free Software

So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world  - RI Safir 1998

http://fairuse.nylxs.com  DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002

"Yeah - I write Free Software...so SUE ME"

"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."

"> I'm an engineer. I choose the best tool for the job, politics be damned.<
You must be a stupid engineer then, because politcs and technology have been attacted at the hip since the 1st dynasty in Ancient Egypt.  I guess you missed that one."


More information about the nylug-talk mailing list