Re: establish installed dependency not in portfile

2017-10-24 Thread Mojca Miklavec
On 23 October 2017 at 10:40, db wrote:
> On 9 Oct 2017, at 12:46, Mojca Miklavec wrote:
>> On 8 October 2017 at 22:05, Ryan Schmidt wrote:
 On Oct 8, 2017, at 14:46, db wrote:
 Until then, since I always build from source, I rather save CPU time. 
 Speaking of which, getting back to my first post, is there any way to 
 query the build time from the buildbots? It'd be useful to estimate when 
 to do an update.
>>> No, we don't have anything that estimates build time.
>> That info is easy to read and collect from the buildbot. The keyword is: "to 
>> collect".
>> Db, we can offer you help if you are willing to write a script to crawl 
>> through buildbot results and collect statistics.
>
> I checked https://build.macports.org/json/help, but couldn't find it.

For example:
- 
https://build.macports.org/json/builders/ports-10.13_x86_64-builder/builds/10627?as_text=1
which corresponds to
- https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/10627

The idea would be to write a script to iterate through all numbers
from 1 on and store results somewhere.

If you want the time estimate specifically, here might be the relevant
information:

  "name": "install-port",
...
  "times": [
1508901749.648058,
1508901850.387383
  ]

I guess the difference represents the seconds spent building the port.

Mojca


Re: apache 2.4: some virtual hosts OK, others load default apache index.html - TYPOS FIXED

2017-10-24 Thread Murray Eisenberg
That helped, thanks.

> On 24 Oct2017, at 4:34 PM, Marius Schamschula  wrote:
> 
> Murray,
> 
> The only thing that pops out immediately, is the allow, deny code. Apache 
> 2.4.x uses
> 
> Require all granted
> 
> instead of
> 
> Order allow, deny
> Allow from all
> 
> See https://httpd.apache.org/docs/2.4/upgrading.html 
> 
> 
>> On Oct 24, 2017, at 3:09 PM, Murray Eisenberg > > wrote:
>> 
>> Just a couple of typos in my original message fixed below.
>> 
>>> On 24 Oct2017, at 4:07 PM, Murray Eisenberg >> > wrote:
>>> 
>>> In apache 2.4 I have several virtual hosts configured  — properly, I 
>>> believe — in /opt/local/etc/apache2/extra/httpd-vhosts.conf.
>>> 
>>> One of the virtual hosts works just fine, but others do not.
>>> 
>>> ** This one works ** 
>>> 
>>> For example, once apache is running, in the browser I CAN load 
>>> “myhomepage.local” thanks to this part of httpd-vhosts.conf:
>>> 
>>>  
>>>  ServerAdmin someb...@somewhere.com 
>>>  DocumentRoot "/Users/me/Sites/MyHomePage"
>>>  ServerName MyHomePage.local
>>>  ServerAlias www.MyHomePage.local 
>>>  ErrorLog  "var/log/apache2/me-MyHomePageerror_log"
>>>  CustomLog "var/log/apache2/me-MyHomePage-access_log" common
>>>  
>>> Options Indexes FollowSymLinks
>>> Order allow,deny
>>> Allow from all
>>> 
>>>  
>>> 
>>> ** This one does NOT work **
>>> 
>>> However, if I try to load me-htdocs.local in the browser, using this part 
>>> of httpd-vhosts.conf …
>>> 
>>>  
>>>  ServerAdmin someb...@somewherel.com 
>>>  DocumentRoot "/Users/me/Sites/htdocs"
>>>  ServerName me-htdocs.local
>>>  ServerAlias www.me-htdocs.local 
>>>  ErrorLog  "var/log/apache2/me-htdocs-error_log"
>>>  CustomLog "var/log/apache2/me-htdocs-access_log" common
>>>  
>>> Options Indexes FollowSymLinks
>>> Order allow,deny
>>> Allow from all
>>> 
>>>  
>>> 
>>> … then this DOES NOT work: I get the default apache2 “It works!” page even 
>>> though the DocumentRoot /Users/me/Sites/htdocs's
>>> index.html file is quite different (e.g., it begins with a head having my 
>>> name in it).
>>> 
>>> Moreover, I get that same default apache2 “It works!” page if I try to load
>>> murray-htdocs.local/index.php then I once again get the default apache “It 
>>> works!” page rather than having the .php file executed [which among other 
>>> things invokes phpinfo() ]
>>> 
>>> ** PHP seems OK **
>>> 
>>> It’s NOT a question of the PHP configuration, because if I put a copy of 
>>> that index.php page into 
>>> /opt/local/www/apache2/html, then loading localhost/index.php DOES work. 
>>> So again, this seems to be an issue with the virtual hosts configuration.
>>> 
>>> 
>>> Any ideas what could be wrong?
>> 
>> ---
>> Murray Eisenberg murrayeisenb...@gmail.com 
>> 
>> 503 King Farm Blvd #101  Home (240)-246-7240
>> Rockville, MD 20850-6667 Mobile (413)-427-5334
>> 
>> 
> 
> Marius
> --
> Marius Schamschula
> 
> 
> 
> 

---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334




Re: apache 2.4: some virtual hosts OK, others load default apache index.html - TYPOS FIXED

2017-10-24 Thread Marius Schamschula
Murray,

The only thing that pops out immediately, is the allow, deny code. Apache 2.4.x 
uses

Require all granted

instead of

Order allow, deny
Allow from all

See https://httpd.apache.org/docs/2.4/upgrading.html 


> On Oct 24, 2017, at 3:09 PM, Murray Eisenberg  > wrote:
> 
> Just a couple of typos in my original message fixed below.
> 
>> On 24 Oct2017, at 4:07 PM, Murray Eisenberg > > wrote:
>> 
>> In apache 2.4 I have several virtual hosts configured  — properly, I believe 
>> — in /opt/local/etc/apache2/extra/httpd-vhosts.conf.
>> 
>> One of the virtual hosts works just fine, but others do not.
>> 
>> ** This one works ** 
>> 
>> For example, once apache is running, in the browser I CAN load 
>> “myhomepage.local” thanks to this part of httpd-vhosts.conf:
>> 
>>  
>>  ServerAdmin someb...@somewhere.com 
>>  DocumentRoot "/Users/me/Sites/MyHomePage"
>>  ServerName MyHomePage.local
>>  ServerAlias www.MyHomePage.local 
>>  ErrorLog  "var/log/apache2/me-MyHomePageerror_log"
>>  CustomLog "var/log/apache2/me-MyHomePage-access_log" common
>>  
>> Options Indexes FollowSymLinks
>> Order allow,deny
>> Allow from all
>> 
>>  
>> 
>> ** This one does NOT work **
>> 
>> However, if I try to load me-htdocs.local in the browser, using this part of 
>> httpd-vhosts.conf …
>> 
>>  
>>  ServerAdmin someb...@somewherel.com 
>>  DocumentRoot "/Users/me/Sites/htdocs"
>>  ServerName me-htdocs.local
>>  ServerAlias www.me-htdocs.local 
>>  ErrorLog  "var/log/apache2/me-htdocs-error_log"
>>  CustomLog "var/log/apache2/me-htdocs-access_log" common
>>  
>> Options Indexes FollowSymLinks
>> Order allow,deny
>> Allow from all
>> 
>>  
>> 
>> … then this DOES NOT work: I get the default apache2 “It works!” page even 
>> though the DocumentRoot /Users/me/Sites/htdocs's
>> index.html file is quite different (e.g., it begins with a head having my 
>> name in it).
>> 
>> Moreover, I get that same default apache2 “It works!” page if I try to load
>> murray-htdocs.local/index.php then I once again get the default apache “It 
>> works!” page rather than having the .php file executed [which among other 
>> things invokes phpinfo() ]
>> 
>> ** PHP seems OK **
>> 
>> It’s NOT a question of the PHP configuration, because if I put a copy of 
>> that index.php page into 
>> /opt/local/www/apache2/html, then loading localhost/index.php DOES work. 
>> So again, this seems to be an issue with the virtual hosts configuration.
>> 
>> 
>> Any ideas what could be wrong?
> 
> ---
> Murray Eisenberg  murrayeisenb...@gmail.com 
> 
> 503 King Farm Blvd #101   Home (240)-246-7240
> Rockville, MD 20850-6667  Mobile (413)-427-5334
> 
> 

Marius
--
Marius Schamschula






Re: apache 2.4: some virtual hosts OK, others load default apache index.html - TYPOS FIXED

2017-10-24 Thread Alejandro Imass
On Tue, Oct 24, 2017 at 4:09 PM Murray Eisenberg 
wrote:

> Just a couple of typos in my original message fixed below.
>
> > On 24 Oct2017, at 4:07 PM, Murray Eisenberg 
> wrote:
> >
> > In apache 2.4 I have several virtual hosts configured  — properly, I
> believe — in /opt/local/etc/apache2/extra/httpd-vhosts.conf.
> >
> > One of the virtual hosts works just fine, but others do not.
> >
> > ** This one works **
> >
> > For example, once apache is running, in the browser I CAN load
> “myhomepage.local” thanks to this part of httpd-vhosts.conf:
> >
> >   
> >   ServerAdmin someb...@somewhere.com
> >   DocumentRoot "/Users/me/Sites/MyHomePage"


The docs on the apache virtual hosts are pretty clear and FreeBSD’s file
layout is very standard. So some of your questions may be answered just by
RTFM, but here are some pointers that may help:

1) make sure httpd-vhosts.conf is actually being included. They are usually
commented in httpd.conf so search that file for the commented Include
directive (search file for “vhost”)
2) If using aliases I think you need to also uncomment vhost_alias module
in that same file.
3) When Apache cannot make a match it will default to the first vhost
defined (this is explicit in the apache docs). So a good practice is to
reserve the first defined vhost precisely for non-matching sites. AFAICR
once you use vhost you cannot mix-match conf with global settings.
4) If this server is sitting behind a reverse proxy make sure you are
passing all the appropriate headers so the inner server can determine the
original request’s domain. Look at ProxyPreserveHost and/or rewrite your
headers manually YMMV.

Hope some of it helps.
—
Alex


>


apache 2.4: some virtual hosts OK, others load default apache index.html

2017-10-24 Thread Murray Eisenberg
In apache 2.4 I have several virtual hosts configured  — properly, I believe — 
in /opt/local/etc/apache2/extra/httpd-vhosts.conf.

One of the virtual hosts works just fine, but others do not.

** This one works ** 

For example, once apache is running, in the browser I CAN load 
“myhomepage.local” thanks to this part of httpd-vhosts.conf:

   
   ServerAdmin someb...@somewhere.com
   DocumentRoot "/Users/me/Sites/MyHomePage"
   ServerName MyHomePage.local
   ServerAlias www.MyHomePage.local
   ErrorLog  "var/log/apache2/me-MyHomePageerror_log"
   CustomLog "var/log/apache2/me-MyHomePage-access_log" common
   
  Options Indexes FollowSymLinks
  Order allow,deny
  Allow from all
  
   

** This one does NOT work **

However, if I try to load me-htdocs.local in the browser, using this part of 
httpd-vhosts.conf …

   
   ServerAdmin someb...@somewherel.com
   DocumentRoot "/Users/me/Sites/htdocs"
   ServerName me-htdocs.local
   ServerAlias www.me-htdocs.local
   ErrorLog  "var/log/apache2/me-htdocs-error_log"
   CustomLog "var/log/apache2/me-htdocs-access_log" common
   
  Options Indexes FollowSymLinks
  Order allow,deny
  Allow from all
  
   

… then this DOES NOT work: I get the default apache2 “It works!” page even 
though the DocumentRoot /Users/murray/Sites/htdocs's
index.html file is quite different (e.g., it begins with a head having my name 
in it).

Moreover, I get that same default apache2 “It works!” page if I try to load
murray-htdocs.local/index.php then I once again get the default apache “It 
works!” page rather than having the .php file executed [which among other 
things invokes phpinfo() ]

** PHP seems OK **

It’s NOT a question of the PHP configuration, because if I put a copy of that 
index.php page into 
/opt/local/www/apache2/html, then loading localhost/index.php DOES work. 
So again, this seems to be an issue with the virtual hosts configuration.


Any ideas what could be wrong?

---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334