Back up a second.
What does that error message say?
"apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Could not open
configuration file /etc/phpmyadmin/apache.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!"
I would immediately focus on the following:
1) /etc/phpmyadmin/apache.conf: No such file or directory
2) The Apache error log may have more information.
Let's address #1 first, well, you will do the work. I will just give some hints.
Apache can load configuration files from external sources.
I would make sure that /etc/phpmyadmin/apache.conf is there.
Depending on the package manageer the file might be in "/etc/phpmysql/apache.conf.example"
Check that first and see if
cp /etc/phpmyadmin/apache.conf.example /etc/phpmyadmin/apache.conf;/etc/init.d/apacheX actually brings the server up.
If that does not work look run the following: find / -iname apache.conf
See if you can find an example file on the local system. I would not suggest going into production with an example config but if it gets you up until you are able to test your configuration properly, and you are able to do this without any security risks then I would say no harm. You muse do the due diligence on that though.
Also, do not tear your hair out. Relax, step away for a second and while you are solving the issue stay relaxed. A clear head is important for solving system admin problems like this. When you start to internalize them you start to lose focus on solving the problem and begin focusing only on what you want to happen.
If you get really irritated you can always google "phpmysql apache.conf" and pick up an example somewhere. Believing people on the internet is bad in most cases so "buyer beware" so to speak.
I hope that this helps.