cmall / LocalHomePage

A Local Home Page for OSX Web Development
http://mallinson.ca/post/osx-web-development
305 stars 123 forks source link

PHP 7.1 #14

Open Danik-Barinshtein opened 7 years ago

Danik-Barinshtein commented 7 years ago

Hello,

I have been using this local environment for quite a while and made a numerous number of installs on different machines so I am pretty comfortable with the process. This dev environment has been all too amazing.

I updated my Mac's PHP to 7.1 and its all gone out of whack giving me an ERR_CONNECTION_REFUSED error, tried reinstalling and reseting my apache settings but no luck - just wondering if you had any similar encounters / suggestions?

Cheers!

artforlife commented 6 years ago

I also have the same problem.

Here is the error:

My Local Sites

%2$s', $tool['url'], $tool['name'] ); } ?> 

', $dirname ); foreach( glob( $d ) as $file ) { $project = basename($file); if ( in_array( $project, $hiddensites ) ) continue; echo ' '; //$siteroot = sprintf( 'http://%1$s.%2$s.%3$s', $project, $dirname, $tld ); $siteroot = sprintf( 'http://%1$s.%2$s', $project, $tld ); // Display an icon for the site $icon_output = ''; foreach( $icons as $icon ) { if ( file_exists( $file . '/' . $icon ) ) { $icon_output = sprintf( '', $siteroot, $icon ); break; } // if ( file_exists( $file . '/' . $icon ) ) } // foreach( $icons as $icon ) echo $icon_output; // Display a link to the site $displayname = $project; if ( array_key_exists( $project, $siteoptions ) ) { if ( is_array( $siteoptions[$project] ) ) $displayname = array_key_exists( 'displayname', $siteoptions[$project] ) ? $siteoptions[$project]['displayname'] : $project; else $displayname = $siteoptions[$project]; } printf( '%2$s', $siteroot, $displayname ); // Display an icon with a link to the admin area $adminurl = ''; // We'll start by checking if the site looks like it's a WordPress site if ( is_dir( $file . '/wp-admin' ) ) $adminurl = sprintf( 'http://%1$s/wp-admin', $siteroot ); // If the user has defined an adminurl for the project we'll use that instead if (isset($siteoptions[$project]) && is_array( $siteoptions[$project] ) && array_key_exists( 'adminurl', $siteoptions[$project] ) ) $adminurl = $siteoptions[$project]['adminurl']; // If there's an admin url then we'll show it - the icon will depend on whether it looks like WP or not if ( ! empty( $adminurl ) ) printf( ' Admin ', $adminurl, is_dir( $file . '/wp-admin' ) ? 'wp' : 'admin' ); echo ' '; } // foreach( glob( $d ) as $file ) echo ''; } // foreach ( $dir as $d ) ?>