1 |
Hello list, |
2 |
|
3 |
I'm setting up a new little box to be a web development server, to develop a |
4 |
new website for my choir. I have it running with the old site, hand-crafted |
5 |
from HTML and CSS, but after installing joomla into the new site and on |
6 |
attempting to open index.php to configure it, as instructed, I get this in |
7 |
/var/log/apache2/error_log: |
8 |
|
9 |
[Fri Mar 24 16:16:36.799232 2017] [:error] [pid 17644:tid 139913741313792] |
10 |
[client ::1:34696] PHP Fatal error: Cannot use Joomla\\String\\String as |
11 |
String because 'String' is a special class name in |
12 |
/var/www/localhost/htdocs/choir/libraries/vendor/joomla/registry/src/Format/Json.php |
13 |
on line 12 |
14 |
|
15 |
I thought I'd set it up right, but clearly I haven't. Is anyone willing to |
16 |
help me find my error, please? |
17 |
|
18 |
# emerge -pv apache php |
19 |
|
20 |
These are the packages that would be merged, in order: |
21 |
|
22 |
Calculating dependencies .... done! |
23 |
[ebuild R ] www-servers/apache-2.4.25:2::gentoo USE="ssl threads - |
24 |
debug -doc -ldap (-libressl) (-selinux) -static -suexec" |
25 |
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core |
26 |
authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host |
27 |
authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate |
28 |
dir env expires ext_filter file_cache filter headers include info log_config |
29 |
logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling |
30 |
status unique_id unixd userdir usertrack vhost_alias -access_compat -asis - |
31 |
auth_digest -authn_dbd -authz_dbd -cache_disk -cache_socache -cern_meta - |
32 |
charset_lite -dbd -dumpio -http2 -ident -imagemap -lbmethod_bybusyness - |
33 |
lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic - |
34 |
macro -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_fcgi - |
35 |
proxy_ftp -proxy_html -proxy_http -proxy_scgi -proxy_wstunnel -ratelimit - |
36 |
remoteip -reqtimeout -slotmem_shm -substitute -version" APACHE2_MPMS="event |
37 |
-prefork -worker" 0 KiB |
38 |
[ebuild R ] dev-lang/php-7.0.15:7.0::gentoo USE="acl apache2 berkdb |
39 |
bzip2 cgi cli crypt ctype curl exif fileinfo filter fpm gd gdbm hash iconv |
40 |
ipv6 json mysql mysqli nls opcache pdo phar posix readline session simplexml |
41 |
spell sqlite ssl threads tokenizer truetype unicode xml xmlreader xmlwriter |
42 |
zip zlib -bcmath -calendar -cdb -cjk -coverage -debug -embed -enchant (- |
43 |
firebird) -flatfile -ftp -gmp -imap -inifile -intl -iodbc -kerberos -ldap - |
44 |
ldap-sasl -libedit (-libressl) -mhash -mssql -oci8-instant-client -odbc - |
45 |
pcntl -phpdbg -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap - |
46 |
sockets -systemd -sysvipc -tidy -wddx -webp -xmlrpc -xpm -xslt" 0 KiB |
47 |
|
48 |
# webapp-config -h localhost -d choir -I joomla 3.4.8 |
49 |
|
50 |
# cat /etc/apache2/vhosts.d/20_choir_vhost.conf |
51 |
<IfDefine DEFAULT_VHOST> |
52 |
Listen 80 |
53 |
<VirtualHost *:80> |
54 |
ServerName choir |
55 |
Include /etc/apache2/vhosts.d/choir_vhost.include |
56 |
<IfModule mpm_peruser_module> |
57 |
ServerEnvironment apache apache |
58 |
</IfModule> |
59 |
</VirtualHost> |
60 |
</IfDefine> |
61 |
|
62 |
# cat /etc/apache2/vhosts.d/choir_vhost.include |
63 |
ServerAdmin webmaster@localhost |
64 |
DocumentRoot "/var/www/localhost/htdocs/choir" |
65 |
<Directory "/var/www/localhost/htdocs/choir"> |
66 |
Options Indexes FollowSymLinks Includes |
67 |
AllowOverride All |
68 |
Require all granted |
69 |
</Directory> |
70 |
<IfModule alias_module> |
71 |
ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/" |
72 |
</IfModule> |
73 |
<Directory "/var/www/localhost/choir/cgi-bin"> |
74 |
AllowOverride None |
75 |
Options None |
76 |
Require all granted |
77 |
</Directory> |
78 |
|
79 |
# grep OPTS /etc/conf.d/apache2 |
80 |
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D |
81 |
LANGUAGE -D SECURITY -D PHP -D INCLUDE -D PROXY -D STATUS" |
82 |
|
83 |
I haven't yet attempted to get SSL working, preferring to have the basic |
84 |
config right first. |
85 |
|
86 |
The web guides to Apache and PHP on Gentoo are confusing, contradictory and |
87 |
out of date with respect to the current software, so I'm having to go slowly |
88 |
- and start again at the beginning, repeatedly.. |
89 |
|
90 |
Any pointers gratefully received; thank you. |
91 |
|
92 |
-- |
93 |
Regards |
94 |
Peter |