Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

apache error

"<username>:users <username>$ sudo apachectl -k restart

AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist

AH00112: Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist

AH00526: Syntax error on line 52 of /private/etc/apache2/extra/httpd-ssl.conf:

Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration"

I am at a loss. I just want the web server to work so I can exchange files and access them.
I thought that I followed all the steps.
Now I no longer get "it works" when putting local host into the browser. I was never able to get the user site to work.

When I try to look at line 52 I get permission denied:

"<username>:users <username>$ cd /etc/apache2/users

<username>:users <username>$ /private/etc/apache2/extra/httpd-ssl.conf

-bash: /private/etc/apache2/extra/httpd-ssl.conf: Permission denied"

Can anyone help me, Please?


Mac 2011 OS X 10.11

iMac, OS X El Capitan (10.11.4)

Posted on Mar 29, 2016 6:40 PM

Reply
20 replies

Mar 29, 2016 6:57 PM in response to Anthony Scioli

You have not edited the default config files to set the Document Root to your specific server location.

Additionally, it doesn't sound like you enabled the ssl module in the config file.

El Capitan uses version 2.4 of Apache, so any tutorials you are following need to reflect those differences.


I'm not sure what you are trying to do when you "look" at the ssl config file, but you can't open and edit it by entering its name like a command. You'll have to use an editor like pico or vi to edit it, or use cat to show the contents.

Or, you can use a Text Editor such as TextWrangler.

Mar 30, 2016 6:40 PM in response to Anthony Scioli

It sounds like you have not correctly followed the instructions. Put all the files you changed back to their default value. Then follow the instructions one step at a time and test until you determine which step in the configuration is causing an error. The "It Works" page was served from the default document root not from a ~user Sites directory. These are two different document roots.

Mar 30, 2016 7:08 PM in response to Barney-15E

I opened the SSL config file, "/private/etc/apache2/extra/httpd-ssl.conf." "I forgot to put sudo nano" in front

I think this is where the syntax error is. I counted the lines:


# SSL Cipher Suite:

# List the ciphers that the client is permitted to negotiate,

# and that httpd will negotiate as the client of a proxied server.

# See the OpenSSL documentation for a complete list of ciphers, and

# ensure these follow appropriate best practices for this deployment.

# httpd 2.2.30, 2.4.13 and later force-disable aNULL, eNULL and EXP ciphers,

# while OpenSSL disabled these by default in 0.9.8zf/1.0.0r/1.0.1m/1.0.2a.

SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4

SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4


I've entered this command, "cd /etc/apache2/users" I thought this sets the directory.


Under the file "/etc/apache2/httpd.conf":


<IfModule unixd_module>

#

# If you wish httpd to run as a different user or group, you must run

# httpd as root initially and it will switch.

#

# User/Group: The name (or #number) of the user/group to run httpd as.

# It is usually good practice to create a dedicated user and group for

# running httpd, as with most system services.

#

User _www

Group _www


Is this a problem?


This is uncommented under, "/etc/apache2/httpd.conf":


# User home directories

Include /private/etc/apache2/extra/httpd-userdir.conf


Here's the only part about SSL under, "/etc/apache2/httpd.conf":


# Secure (SSL/TLS) connections

Include /private/etc/apache2/extra/httpd-ssl.conf

#

# Note: The following must must be present to support

# starting without SSL on platforms with no /dev/random equivalent

# but a statically compiled-in mod_ssl.

#

<IfModule ssl_module>

SSLRandomSeed startup builtin

SSLRandomSeed connect builtin

</IfModule>


Include /private/etc/apache2/other/*.conf

Mar 30, 2016 7:13 PM in response to Anthony Scioli

Did you enable the SSL module at the beginning of the config file.

You are asking it to load the SSL config, but it appears you did not load the SSL module, so it doesn't know what SSLCipherSuite is.


The first errors you got indicate that you have the Document Root set to /usr/docs/dummy-host.example.com, but that is not a default setting for any of the config files that ship with OS X.

Mar 30, 2016 7:38 PM in response to Anthony Scioli

Is this problem:

TrsTone:~ TrsTone$ ls -l /etc/apache2/users/

total 32

-rw-r--r-- 1 root wheel 101 Mar 22 21:19 Sharkeshia.conf

-rw-r--r-- 1 root wheel 133 Mar 20 16:27 TrsTone.conf

-rw-r--r-- 1 root wheel 98 Mar 17 21:50 jukebox.conf

-rw-r--r-- 1 root wheel 134 Mar 28 23:06 username.conf


I entered,


sudo nano username.conf

Then add the content below swapping in your ‘username’ in the code below:

<Directory "/Users/username/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>

At some point I didn't enter my username in the command, "sudo nano username.conf." Did this make the file, "username.conf"?

All of these files are empty except "TrsTone.conf."


sudo nano username.conf is,


<Directory "/Users/username/Sites/">

AllowOverride All

Options Indexes MultiViews FollowSymLinks

Require all granted

</Directory>


Should username.conf exist? If so, what should be written under it?

Mar 30, 2016 7:51 PM in response to Barney-15E

The first errors you got indicate that you have the Document Root set to /usr/docs/dummy-host.example.com, but that is not a default setting for any of the config files that ship with OS X.

This is a used mac. What should it say?

Did you enable the SSL module at the beginning of the config file.

You are asking it to load the SSL config, but it appears you did not load the SSL module, so it doesn't know what SSLCipherSuite is.


I am not sure. Under /private/etc/apache2/extra/httpd-ssl.conf? or under /etc/apache2/httpd.conf?

Mar 31, 2016 4:37 AM in response to Anthony Scioli

Anthony Scioli wrote:


How do I set the document root?

It is in httpd.conf file around line 236.

The httpd-ssl.conf file also contains directives for setting the Document root for https servers.

Virtual Hosts can also set a Document Root, but I don't know if you enabled that.


If you are using the bundled config files and haven't replaced them with ones from somewhere else, I don't know why the document root is pointing to /usr/docs.

Mar 31, 2016 4:35 AM in response to Anthony Scioli

I got rid of the first 2 errors by editing, "/etc/apache2/extra/httpd-vhosts.conf ."

I erased the 2nd host and changed the directory of the 1st.


<VirtualHost *:80>

ServerAdmin webmaster@dummy-host.example.com

DocumentRoot "/Users/TrsTone/Sites"

ServerName dummy-host.example.com

ServerAlias www.dummy-host.example.com

ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"

CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" com$

</VirtualHost>


Now I am just down to the Syntax Error


TrsTone:Documents TrsTone$ sudo apachectl -k restart

AH00526: Syntax error on line 52 of /private/etc/apache2/extra/httpd-ssl.conf:

Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration


I got to get ready for work.


Mar 31, 2016 7:02 PM in response to Barney-15E

Below is all the load modules under, "/etc/apache2/httpd.conf." The only line I see with SSL is "LoadModule ssl_module libexec/apache2/mod_ssl.so" When I uncomment that I get,

"AH00526: Syntax error on line 92 of /private/etc/apache2/extra/httpd-ssl.conf:

SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?)."




LoadModule authz_user_module libexec/apache2/mod_authz_user.so

#LoadModule authz_dbm_module libexec/apache2/mod_authz_dbm.so

#LoadModule authz_owner_module libexec/apache2/mod_authz_owner.so

#LoadModule authz_dbd_module libexec/apache2/mod_authz_dbd.so

LoadModule authz_core_module libexec/apache2/mod_authz_core.so

#LoadModule authnz_ldap_module libexec/apache2/mod_authnz_ldap.so

LoadModule access_compat_module libexec/apache2/mod_access_compat.so

LoadModule auth_basic_module libexec/apache2/mod_auth_basic.so

#LoadModule auth_form_module libexec/apache2/mod_auth_form.so

#LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so

#LoadModule allowmethods_module libexec/apache2/mod_allowmethods.so

#LoadModule file_cache_module libexec/apache2/mod_file_cache.so

#LoadModule cache_module libexec/apache2/mod_cache.so

#LoadModule cache_disk_module libexec/apache2/mod_cache_disk.so

#LoadModule cache_socache_module libexec/apache2/mod_cache_socache.so

#LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so

#LoadModule socache_dbm_module libexec/apache2/mod_socache_dbm.so

#LoadModule socache_memcache_module libexec/apache2/mod_socache_memcache.so

#LoadModule watchdog_module libexec/apache2/mod_watchdog.so

#LoadModule macro_module libexec/apache2/mod_macro.so

#LoadModule dbd_module libexec/apache2/mod_dbd.so

#LoadModule dumpio_module libexec/apache2/mod_dumpio.so

#LoadModule echo_module libexec/apache2/mod_echo.so

#LoadModule buffer_module libexec/apache2/mod_buffer.so

#LoadModule data_module libexec/apache2/mod_data.so

#LoadModule ratelimit_module libexec/apache2/mod_ratelimit.so

LoadModule reqtimeout_module libexec/apache2/mod_reqtimeout.so

#LoadModule ext_filter_module libexec/apache2/mod_ext_filter.so

#LoadModule request_module libexec/apache2/mod_request.so

LoadModule include_module libexec/apache2/mod_include.so

LoadModule filter_module libexec/apache2/mod_filter.so

#LoadModule reflector_module libexec/apache2/mod_reflector.so

#LoadModule substitute_module libexec/apache2/mod_substitute.so

#LoadModule sed_module libexec/apache2/mod_sed.so

#LoadModule charset_lite_module libexec/apache2/mod_charset_lite.so

#LoadModule deflate_module libexec/apache2/mod_deflate.so

#LoadModule xml2enc_module libexec/apache2/mod_xml2enc.so

#LoadModule proxy_html_module libexec/apache2/mod_proxy_html.so

LoadModule mime_module libexec/apache2/mod_mime.so

#LoadModule ldap_module libexec/apache2/mod_ldap.so

LoadModule log_config_module libexec/apache2/mod_log_config.so

#LoadModule log_debug_module libexec/apache2/mod_log_debug.so

#LoadModule log_forensic_module libexec/apache2/mod_log_forensic.so

#LoadModule logio_module libexec/apache2/mod_logio.so

LoadModule env_module libexec/apache2/mod_env.so

#LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so

#LoadModule expires_module libexec/apache2/mod_expires.so

LoadModule headers_module libexec/apache2/mod_headers.so

#LoadModule usertrack_module libexec/apache2/mod_usertrack.so

##LoadModule unique_id_module libexec/apache2/mod_unique_id.so

LoadModule setenvif_module libexec/apache2/mod_setenvif.so

LoadModule version_module libexec/apache2/mod_version.so

#LoadModule remoteip_module libexec/apache2/mod_remoteip.so

LoadModule proxy_module libexec/apache2/mod_proxy.so

LoadModule proxy_connect_module libexec/apache2/mod_proxy_connect.so

LoadModule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so

LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so

LoadModule proxy_fcgi_module libexec/apache2/mod_proxy_fcgi.so

LoadModule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so

#LoadModule proxy_fdpass_module libexec/apache2/mod_proxy_fdpass.so

LoadModule proxy_wstunnel_module libexec/apache2/mod_proxy_wstunnel.so

LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so

LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so

LoadModule proxy_express_module libexec/apache2/mod_proxy_express.so

#LoadModule session_module libexec/apache2/mod_session.so

#LoadModule session_cookie_module libexec/apache2/mod_session_cookie.so

#LoadModule session_dbd_module libexec/apache2/mod_session_dbd.so

LoadModule slotmem_shm_module libexec/apache2/mod_slotmem_shm.so

#LoadModule slotmem_plain_module libexec/apache2/mod_slotmem_plain.so

#LoadModule ssl_module libexec/apache2/mod_ssl.so

#LoadModule dialup_module libexec/apache2/mod_dialup.so

LoadModule lbmethod_byrequests_module libexec/apache2/mod_lbmethod_byrequests.so

LoadModule lbmethod_bytraffic_module libexec/apache2/mod_lbmethod_bytraffic.so

LoadModule lbmethod_bybusyness_module libexec/apache2/mod_lbmethod_bybusyness.so

#LoadModule lbmethod_heartbeat_module libexec/apache2/mod_lbmethod_heartbeat.so

LoadModule unixd_module libexec/apache2/mod_unixd.so

#LoadModule heartbeat_module libexec/apache2/mod_heartbeat.so

#LoadModule heartmonitor_module libexec/apache2/mod_heartmonitor.so

#LoadModule dav_module libexec/apache2/mod_dav.so

LoadModule status_module libexec/apache2/mod_status.so

LoadModule autoindex_module libexec/apache2/mod_autoindex.so

#LoadModule asis_module libexec/apache2/mod_asis.so

#LoadModule info_module libexec/apache2/mod_info.so

#LoadModule cgi_module libexec/apache2/mod_cgi.so

#LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so

#LoadModule dav_lock_module libexec/apache2/mod_dav_lock.so

LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so

LoadModule negotiation_module libexec/apache2/mod_negotiation.so

LoadModule dir_module libexec/apache2/mod_dir.so

#LoadModule imagemap_module libexec/apache2/mod_imagemap.so

#LoadModule actions_module libexec/apache2/mod_actions.so

#LoadModule speling_module libexec/apache2/mod_speling.so

LoadModule userdir_module libexec/apache2/mod_userdir.so

LoadModule alias_module libexec/apache2/mod_alias.so

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

LoadModule php5_module libexec/apache2/libphp5.so

LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so

apache error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.