Zainstalowałem LAMP
ale kiedy włożyłem apache.conf
ta linia jest w instrukcji Include /etc/phpmyadmin/apache.conf
i próbując ponownie uruchomić apache, pojawia się komunikat o błędzie:
~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 222 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.
Zameldowałem się /etc/phpmyadmin
i nie mam takiego pliku /etc/phpmyadmin/apache.conf
Not Found
The requested URL /phpmyadmin/ was not found on this server.
Moje pytanie brzmi: czy muszę go skądś pobrać, czy też muszę je utworzyć i umieścić w nim coś? Czy ten plik nie zawiera instalacji LAMP?
Aktualizacja z błędem sudo apt-get install phpmyadmin
Creating config file /etc/php5/mods-available/mysql.ini with new version
cp: cannot create regular file ‘/etc/php5/mods-available/mysql.ini’: No such file or directory
dpkg: error processing package php5-mysql (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of phpmyadmin:
phpmyadmin depends on php5-mysql | php5-mysqli | php5-mysqlnd; however:
Package php5-mysql is not configured yet.
Package php5-mysqli is not installed.
Package php5-mysqlnd is not installed.
dpkg: error processing package phpmyadmin (--configure):
dependency problems - leaving unconfigured
Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.5) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
php5-mysql
javascript-common
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get install phpmyadmin