el7 is RH or CentOS enterprise release 7 - which? CentOS 7 or true RedHat EL 7?
Among other potential issues with installations, seLinux is typically running in the 'enforcing' mode and it will deny a clean install.
Please check apache server error logs which on a typical el7 is in /var/log/httpd/ ssl_error_log or just error_log depending upon how logging was configured.
Also check if seLinux is running. As root user, issue:
setatus [ENTER]
You should see something like:
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31
IF it says 'enforcing', set to 'permissive'.
When installing Moodle, using git is a good idea. Suggest once code is in place and moodledata directory has been created manually (normally in /var/www/ and owned by 'apache' user and group with very liberal permissions ... rwx granted to all) and an empty database has been created for moodle, run the install.php script in moodlecode/admin/cli/
php install.php [ENTER]
You will be prompted for all the same things the web interface prompts for and the setting of the admin user password won't be a problem (apache isn't involved).
If you do the install as root user, make sure you change the ownerships/permissions on the config.php file that is created in the code directory so what all can read the file:
chmod ugo+r config.php
Then try to access site with browser.
'SoS', Ken