![]() ![]() This runs the graphical MAMP app from the MAMPuser account no matter who is logged in.įor information on how to use Automator, check out For directions, go to Ħ) For each user, set up an Automator application with the following Utilities -> Run Shell Script command: sudo -u MAMPuser /Applications/MAMP/MAMP.app/Contents/MacOS/MAMP >/dev/null 2>&1 & (NOTE: Again, this is for convenience, not security investigate the implications of this if you are worried about other users messing up your website.) sudo chmod -R g+rwx ĥ) Add user accounts that you want to be able to run MAMP to the MAMPgroup. Of particular importance were the mysql database folders /Applications/MAMP/db/mysql56, so if you have issues starting MySQL server, double check the permissions on the items in that folder.Ĥ) Change the permissions on your Apache Document Root folder as appropriate to allow your php website to run for members of MAMPgroup. (NOTE: This is for convenience, not security investigate the implications of this if you are worried about other users messing up your install.) From Terminal: sudo chmod -R g+rwx /Applications/MAMP Sudo chgrp -R MAMPgroup /Applications/MAMPģ) Change permissions on all the MAMP folders/files to let group members read, write and execute. From Terminal: sudo chown -R MAMPuser /Applications/MAMP For directions, go to Ģ) Install MAMP using this user/group OR (if already installed) change the owner/group of the MAMP files to this new user group. #26 /Applications/MAMP/htdocs/owncloud/console.This worked for me when I wanted to allow an employee to use my inhouse-developed inventory software that runs on the business's MacPro (macOS HighSierra 10.13.4) using MAMP free (4.2.1):īe sure to stop MAMP servers and close the app before doing these steps.ġ) Create a user/group account to use for running MAMP. ![]() #25 /Applications/MAMP/htdocs/owncloud/lib/base.php(1060): OC::init() #24 /Applications/MAMP/htdocs/owncloud/lib/base.php(591): OC_App::loadApps(Array) #23 /Applications/MAMP/htdocs/owncloud/lib/private/legacy/app.php(108): OC_App::getEnabledApps() #22 /Applications/MAMP/htdocs/owncloud/lib/private/legacy/app.php(344): OC\Server->getAppManager() #21 /Applications/MAMP/htdocs/owncloud/lib/private/Server.php(1458): OC\ServerContainer->query(‘AppManager’) #20 /Applications/MAMP/htdocs/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query(‘AppManager’) ![]() #19 /Applications/MAMP/htdocs/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet(‘AppManager’) #8 /Applications/MAMP/htdocs/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC(Object(OC\Server)) #7 /Applications/MAMP/htdocs/owncloud/lib/private/Server.php(552): OC\DB\ConnectionFactory->getConnection(‘mysql’, Array) #6 /Applications/MAMP/htdocs/owncloud/lib/private/DB/ConnectionFactory.php(139): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager)) #5 /Applications/MAMP/htdocs/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(262): OC\DB\Connection->_construct(Array, Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager)) #4 /Applications/MAMP/htdocs/owncloud/lib/private/DB/Connection.php(148): Doctrine\DBAL\Connection->setTransactionIsolation(2) #3 /Applications/MAMP/htdocs/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(844): Doctrine\DBAL\Connection->getDatabasePlatform() #2 /Applications/MAMP/htdocs/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform() #1 /Applications/MAMP/htdocs/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion() ![]() #0 /Applications/MAMP/htdocs/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): OC\DB\Connection->connect() As for the database connection error, when scanning the files, the terminal returns me these errors:ġ92:~ pillo$ php /Applications/MAMP/htdocs/owncloud/occ files:scan pillaccioĭoctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE No such file or directory in /Applications/MAMP/htdocs/owncloud/lib/private/DB/Connection.php:62 Update: to fix the HSTS error just set a single php for all sites, because the error appeared with different php for each site. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |