I have already googled this error and tried literary all but cant solve this error
My version of Ubuntu is 18
I have 13GB bak.gz database dump. How can I import it to my local pgsql db by ubuntu command line?
I use Ubuntu 18.04.
Command sudo service apache2 restart
returns an error.
kurusa kernel: apache2[17035]: segfault at 7f478cc64e00 ip 00007f4788e13fcf sp 00007ffdb66f0620 error 6 in libphp7.0.so[7f4788bc1000+390000]
kurusa apachectl[17032]: Segmentation fault (core dumped)
kurusa apachectl[17032]: Action 'start' failed.
These are some lines from journalctl -xe
result:
kurusa anacron[16951]: Anacron 2.3 started on 2018-12-19
kurusa anacron[16951]: Normal exit (0 jobs run)
kurusa wpa_supplicant[1022]: TDLS: Invalid frame - payloadtype=1 category=240 action=10
kurusa wpa_supplicant[1022]: TDLS: Invalid frame - payloadtype=1 category=240 action=10
kurusa sudo[17006]: kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/ps -f -p 4489
kurusa sudo[17006]: pam_unix(sudo:session): session opened for user root by (uid=0)
kurusa sudo[17006]: pam_unix(sudo:session): session closed for user root
kurusa sudo[17008]: kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/ps -f -p 2197
kurusa sudo[17008]: pam_unix(sudo:session): session opened for user root by (uid=0)
kurusa sudo[17008]: pam_unix(sudo:session): session closed for user root
kurusa sudo[17011]: kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/kill 2197
kurusa sudo[17011]: pam_unix(sudo:session): session opened for user root by (uid=0)
kurusa sudo[17011]: pam_unix(sudo:session): session closed for user root
kurusa sudo[17021]: kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/ps -f -p 4489
kurusa sudo[17021]: pam_unix(sudo:session): session opened for user root by (uid=0)
kurusa sudo[17021]: pam_unix(sudo:session): session closed for user root
kurusa sudo[17026]: kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
kurusa sudo[17026]: pam_unix(sudo:session): session opened for user root by (uid=0)
Here is my apache2.conf
:
DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
KeepAliveTimeout 5
MaxKeepAliveRequests 100
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride All
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /home/kurusa/proj>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Include /etc/phpmyadmin/apache.conf
Also the command sudo a2dismod php7.0
returned:
ERROR: /etc/apache2/mods-enabled/php7.0.load is not a symbolic link, not deleting
How can I fix this problem?
I'm using Ubuntu 18.04.
I renamed the /etc
folder to apache2
. That was my greatest mistake
Now I can't rename it back because I need to use sudo
, but when I try I get the error
sudo: unknown uid 1000
How can I fix this problem? I don't have a live system to boot from, and in recovery mode the root terminal opens but then closes saying cannot open password database
.
When I tried to install Apache in Ubuntu 18.04 using the command sudo apt install apache2
, I got:
E: Distorted line 2 in the sources list /etc/apt/sources.list.d /official-package-repositories.list
E: The list of sources is not read.
E: Distorted line 2 in the sources list /etc/apt/sources.list.d/official-package-repositories.list
The second line contains the word universe
. After I deleted it, I got:
The apache2 package is not available, but is listed in the dependency list of another package.
E: No installation candidate found for the “apache2” package.