Thanks for your books, the one for ZF3 and now this one published last month. I was hoping to use a LAMP server to follow along the chapters. One question I had is in chapter two, upon enabling the display of all errors, I get blank white pages when using Centos 8. Is this pretty common? I instead enabled display_errors in php.ini but am not sure if that is acceptable practice. Another question I had was, instead of enabling the Intl PHP extension by uncommenting the line that says ;extension=intl, I could instead install something called php74-php-intl.x86_64 ?
I am appending a sort of protocol I have been using in case it might help... after nearly a dozen tries this is what seems to work...
Starting with new Centos 8 install on private network as user phpcat:
sudo yum -y update
shutdown -r now
sudo yum -y install epel-release https://rpms.remirepo.net/enterprise/remi-release-8.rpm
sudo yum config-manager --set-enabled PowerTools
sudo yum -y install tar wget net-tools gcc make zip unzip emacs nkf
sudo yum -y install mariadb mariadb-server mariadb-devel
sudo systemctl enable mariadb.service
sudo systemctl start mariadb.service
mysql_secure_installation
sudo yum -y module install php:remi-7.4
sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel libffi-devel
sudo yum -y install php-bcmath php-dba php-dbg php-embedded php-enchant php-gd php-gmp php-intl php-ldap php-mysqlnd php-odbc php-opcache php-pdo php-pgsql php-process php-recode php-snmp php-soap php-xmlrpc
systemctl enable httpd
systemctl start httpd
systemctl status httpd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
cd /etc
sudo nano php.ini
made certain changes...
> error_log = /var/log/php_error.log
> date.timezone = America/Los_Angeles
> pdo_mysql.default_socket=/var/lib/mysql/mysql.sock
sudo touch /var/log/php_error.log
sudo chown apache:apache /var/log/php_error.log
sudo chmod 666 /var/log/php_error.log
systemctl restart httpd
sudo yum -y install ImageMagick ImageMagick-devel
cd /home/phpcat
sudo wget https://getcomposer.org/installer -O composer-installer.php
sudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin
composer self-update
sudo rm -f composer-installer.php
sudo yum -y install git
su - phpcat
From within /home/phpcat ... seems to be the only place this will work from...
sudo mkdir /var/www/html/laminas_app
sudo chown phpcat /var/www/html/laminas_app
composer create-project -s dev laminas/laminas-mvc-skeleton /var/www/html/laminas_app
#Now when I visit http://lamp.localdomain/laminas_app/public/ I see the Laminas MVC Skeleton welcome page.
sudo yum list php7*intl
sudo yum install php74-php-intl.x86_64
systemctl resetart httpd
#I can stil see the Laminas MVC Skeleton welcome page and toolbar!
sudo nano /var/www/html/laminas_app/index.php
[ __DIR__ . '/../view',
],
'base_path' = > '/laminas_app/public/'
sudo nano /var/www/html/laminas_app/public/index.php
#Added the following lines just after line 1 where it says