Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A collection of issues that may arise when installing or using the iPhone or iPad interfaces.

During Installation:

Apache will not start
Syntax Error on line 20
Syntax error on line 68
Server.app
Database Name/Password
During Use:

White page loads
Login Loop
Admin can't login
Can't access outside of office

Table of Contents

During Installing

Apache will not start

When starting (or restarting) the Apache webserver, it may return an error saying that it could not start. If this happens, the following command will help troubleshoot what is preventing Apache from starting:

...

If this command returns "Syntax OK" then you know that your Apache configuration files are not the source of the issue and you may have to look elsewhere. However, if there is an issue with the configuration file, the error returned will generally point to the file or line causing an issue.

apachectl configtest returns "Syntax error on line 20

apachectl configtest returns "Syntax error on line 20 of /private/etc/apache2/extra/httpd-mpm.conf: Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration"
If this occurs, open httpd-mpm.conf from the directory listed in the error, and comment out the following lines by placing an # in front of them, like so:

...

Save the file, and run apachectl configtest again to verify that your configuration is now okay.

apachectl configtest returns "Syntax error on line 68

apachectl configtest returns "Syntax error on line 68 of /private/etc/apache2/extra/httpd-ssl.conf: Invalid command 'SSLMutex', perhaps misspelled or defined by a module not included in the server configuration.
If this occurs, open httpd-ssl.conf from the directory listed in the error, and change line 77 of the file as below:

...

Save the file, and run apachectl configtest again to verify that your configuration is now okay.

The office has Server.app installed

Server.app has its own install of the Apache webserver, which will supercede macOS's included Apache. This Apache will have its own documentroot folder for serving pages; for this we need to create a link to the pages that the iPhone or iPad Interface installer creates. Run the following command(s) in Terminal appropriate for the the interface being installed.

Code Block
sudo ln -s /Library/WebServer/Documents/iphone /Library/Server/Web/Data/Sites/Default/iphone
sudo ln -s /Library/WebServer/Documents/ipad /Library/Server/Web/Data/Sites/Default/ipad
sudo ln -s /Library/WebServer/Documents/patientportal /Library/Server/Web/Data/Sites/Default/patientportal

I use a password on MySQL's root user

...

/ My database is not named macpractice

Though uncommon, these are options that do occasionally come up with MacPractice installations. These can be configured by editing the db_connection.php file in /Library/WebServer/MacPracticeLibs/ using the text editor of your choice. There are four variable options that can be configured in this file:

...

The first line defines the IP address of the MySQL server, and generally should be left alone. The second line defines the MySQL user used to make the connection to the database, and again, should generally be left alone. The third line defines the password used to make the database connection; if the root user has a password set, the password must be entered between the quotes on this line. Finally, the fourth line defines the name of the database; if the office stores their MacPractice data in a database named something other than 'macpractice', the database name must be entered in between the quotes on this line.

...

During Usage

When i visit the iPad or iPhone interface, instead of loading the interface as i expect, a white page with code appears

When this occurs, it means that PHP has not been enabled in the /etc/httpd.conf file.

I log in and enter a user name and password i know to be good, the interface does not log me in, instead returning me to the log in page with no error

This generally happens if the office has updated MacPractice but hasn't updated their interface, particularly at the MacPractice v5.1 update where changes were made to password handling. Log in to the download site and grab the latest installer and run it, and verify that they can now log in.

I cannot log in as the admin user

This is by design with the interfaces, in order to prevent attempts at accessing patient information by third parties. One must log in using a MacPractice user with a different user name from 'admin'.

I can access the interface from localhost or within the office, but not outside the office

This happens when there's a failure in the office's port forwarding setup. Resolving this is generally outside the boundaries of MacPractice support and is best handled by the office's IT professional. Generally when this happens, it is because of one of the following three things:

...