KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Starting Web Server on Mac OS X
PRODUCT: 4D | VERSION: 11.2 | PLATFORM: Mac
Published On: October 1, 2008

When starting a Web Server on Mac OS X, the ports reserved for this purpose, 0 to 1023 require that only the root user of the machine can have access to launch an application using these ports.

The solution in previous versions of 4D was to open a temporary "root" session when the Web Server was launched. Security policy modifications implemented in version 10.5 of Mac OS X (Leopard) no longer allow for this option to be used.

Starting with 4D v11.2 SQL, an application has been created specifically for the purpose of opening a port. The HelperTool application has the appropriate access rights built-in. This application is included with the 4D software. It gets installed the first time you open a port that is less than 1024 on the machine. The user gets notified of the installation and prompted for an Admin user name and password for that machine. This only happens once.

The application gets renamed com.4D.HelperTool and gets installed in the folder Library/PrivilegedHelperTools/. The Web Server can be stopped or started transparently after the initial installation.

The minimum requirement for this option is Mac OS X 10.4.6. Previous versions of Mac OS X, require a different Web Server publication solution.