New answers tagged

0

At this stage I would simply recommend "turning it off and on again" by doing: sudo apt-get purge php-common php5-common followed by sudo rm -r /etc/php And then reinstalling PHP 7.0 and mysql modules: sudo apt-get install libapache2-mod-php php-mysql You may also try just purging and reinstalling mysql modules, first removing the package: sudo ...


0

Use the -f instead of the -c switch to specify a config file, like httpd -t -f httpd.conf Make sure httpd.conf is the the current directory.


0

https://bugs.launchpad.net/ubuntu/+source/mariadb-10.0/+bug/1447808/comments/6 You could succeed your installation by choose mysql user root instead of phpmyadmin and debian-sys-maint after this you need to create mysql user like root CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON *.* TO 'admin'@'localhost';


0

I had the same issue, and I resolved with this answer by @user534575 Have a look also at this question


1

I finally found the proper answer to that problem, and it was indeed linked to a recent Ubuntu update. When I tried to do as Dan suggested, sudo a2ensite ecritsduchateau, I got the error Site does not exist while I knew it was there, I was looking at it! So I searched for that error, to find the answer here: Stack Overflow: Site does not exist error for ...


0

You may have to give permission to Codeigniter folder $ sudo chmod 755 -R /var/www/html/Codeigniter and also keep a backup of .htaccess file then remove it from Codeigniter folder.


1

This functionality is available by enabling the Apache userdir module with: sudo a2enmod userdir Your next step is to configure how you want Apache to handle the URIs. Some examples: If you want the URL http://localhost/~user1/site1 to load from the /home/user1/site1 directory, you need to use UserDir ./ If you want the URL ...


-1

You can define virtualhost with different servername and document root for each people. But you should edit /etc/hosts for each user . For example : Virtualhost *:80 Servername : person 1 Document root : /home/person1 And also you can define home directory as document root and each user can find his/her directory. Notice that you should give www-data ...


0

Usually this is an issue after a vanilla install in 16.04 (Xenial Xerus) too. To fix it: sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo a2enconf phpmyadmin.conf sudo systemctl restart apache


0

I Try this: sudo dpkg-reconfigure phpmyadmin and set socket on TCP/IP. After the sudo apt-get install php-mbstring php7.0-mbstring php-gettext sudo service apache2 restart


1

install libapache2-mod-php and worked for me


1

I had the same problem. Fixed it by replacing my config/config.php with the version from the owncloud package, and re-entered the mysql settings. I hope this solves your problem too


-1

I was getting (core dumped) when starting httpd because my /var/log partition was full. Removing old/large apache logfiles allowed me to start the service without the specific error.


0

Ubuntu 16.04 removed php5 packages and removed those with PHP 7.0 packages that doesn't have php5, but just php inside package names, so replace your command with: sudo apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-intl php-pear php-imagick php-imap php-mcrypt php-memcache php-ming php-ps php-pspell php-recode php-sqlite php-tidy ...


0

Try ctlr+F5 to reload page , Apache will send all of contents. And also apache has a bit cache on memory . You can try echo 3 /proc/sys/vm/drop_caches


0

The browser you used has correctly interpreted a Redirect Permanent and thus automatically redirects from http://mysite.example.com to https://mysite.example.com . In Firefox, you can clean this cache by removing all the history for mysite.example.com. As you can't connect to your https-enabled website: is port 443 (HTTPS) open on the firewall? Is Apache ...


0

You have two options ENTER THESE COMMANDS FOR THE SPECIFIC ERROR IF YOUR PRIOR CONFIGURATION IS OKAY sudo apt-get install php-gettext sudo apt-get install php-mbstring sudo apt-get update sudo service apache2 restart OR REMOVE AND START A FRESH INSTALL sudo service mysql stop sudo apt-get --purge remove mysql* sudo apt-get --purge remove phpmyadmin sudo ...


0

PHP7.0 is standard on Ubuntu 16+ Heres the rundown: 1 As Always sudo apt-get update 2 Install Apache2 sudo apt-get install apache2 3 Install mysql-server sudo apt-get install mysql-server 4 Install PHP 7.0 sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php-mbstring php7.0-mbstring php-gettext php7.0-json php-xml ...


0

I had different issues with my 16.04 upgrade but eventually got it working. Make sure there is an owncloud.conf in /etc/apache2/sites-enabled and /etc/apache2/conf-enabled. Also make sure your data directory is configured correctly in /var/www/owncloud/config/config.php and also make sure the www-data user/group owns and has read/write permissions. If ...


0

using Synaptic Package Manager, install php7.0-mbstring, and restart apache.


0

I found I had to reinstall owncloud after upgrading from ubuntu 15.10 to 16.04. I think it was the upgrade from php5 to php7 that broke everything. Owncloud supports php7, but maybe it requires reinstallation to use it. Just to note, I installed owncloud from the package available via opensuse. The steps I took were: sudo apt-get remove owncloud I then ...


8

What worked for me was this guide: http://www.lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu Actually is not required to remove php7.0, you can install php5.6 together ( also because you will have dependency problem with phpmyadmin package that required php7.0) Assuming libapache2-mod-php is a suitable way to enable PHP in Apache for you, you can ...


6

apt-get install php-mbstring php7.0-mbstring php-gettext sudo service apache2 restart


1

Ubuntu 16.04 comes with PHP 7.0. You need to install libapache2-mod-php package and then disable all traces of PHP5. Uninstall PHP5.x package: sudo apt-get purge php5-common (this will remove all PHP 5 packages. Install default (7.0) PHP apache2 SAPI: sudo apt-get install libapache2-mod-php If the apache2 is still broken do: sudo rm ...


3

The php command is provided by php7.0-cli package on Ubuntu 16.04. Running the CLI is orthogonal to the web server configuration. You need to install and configure one of the web SAPIs - apache2, fpm or cgi. The most easy is to install apache2 SAPI. To install apache2 SAPI, run apt-get install libapache2-mod-php (this will pull the default PHP version, ...


3

Your question lacks important details, so I will answer more broadly. Assuming you are using packages, there are some important details: Apache2 can be configured to use either apache2 SAPI using libapache2-mod-php7.0 package or FPM SAPI using php7.0-fpm with mod_proxy_fcgi. Ubuntu 16.04 has only PHP 7.0 in the repositories, you can use ppa:ondrej/php to ...


1

I think you should remove your php packages and install php5.6. You can proceed as follows: sudo aptitude purge dpkg -l | grep php| awk '{print $2}' |tr "\n" " " sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php5.6 You can then check the version of your php to be sure. It is done as seen below: php -v


0

I believe this is because You haven't configure your phpmyadmin with the apache server well. If you installed the apache server and phpmyadmin using sudo apt-get install (Because you can install them using source code etc.) below procedure may works for you. sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo ln -s ...


0

Use command dpkg --get-selections | grep apache to see the list of installed apache service. If you see the libapache2-mod-php7.0 is missing then use following command to list all available the php7.0 service sudo apt-cache search php7-* Now install required services sudo apt-get install libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json Now ...


4

The bans are stored in a SQLite3 database in /var/lib/fail2ban. To open it you need the package sqlite3 installed and if you want a GUI, use a tool like sqliteman. The name of that database file is called: /var/lib/fail2ban/fail2ban.sqlite3


1

I got the problem solved. I placed my project folder here: /var/www/html/ and then reloaded localhost/project_name/index.php.


0

I made mine running again by installing libapache2-mod-php7.0. Hope this helps.


2

All the previous answers did not help me, but then I found the solution: apt install php-gettext this fixed phpmyadmin white blank page issue.


7

To configure php7 to run with your server you need to do some configuration: 1. Make sure you remove any traces of php/php5 Open a terminal Ctrl+Alt+T and: cd /etc/apache2/mods-enabled ls -la The output should not contain any php5.conf or php5.load, but if it does, do the following: # this is the proper way of disabling modules sudo a2dismod php5 # ...


2

Just like before, you have to install PHP for Apache. From the Server Guide: sudo apt install php libapache2-mod-php That command will install PHP and the Apache 2 PHP module. Simply configure Apache as before (sudo a2enmod php7.0, I think, will turn on the module). Your mbstring issue is similar - you need to install that extension: sudo apt ...


1

apt-get install php-mbstring php7.0-mbstring php-gettext


0

Instead of fiddling with all those files, I simply did the following two steps: added the folders I needed to a group in which www-data is a member of and granted the group both read and execute permissions (for some reason execute was not enough), thanks Brian Added what I originally had in my alias.conf to apache2.conf Obviously I first removed all the ...


2

I guess you are using PPA for PHP 5.6 for Ubuntu 12.04 (precise). Your issue is because that apache2-mpm-prefork is already obsoleted in 2.4.x. You just need to remove apache2-mpm-prefork, then install apache2, and default is prefork mode.


-1

You need to install apache2-dev package.


0

1. Installation The Apache2 web server is available in Ubuntu Linux. To install Apache2: At a terminal prompt enter the following command: sudo apt-get install apache2 2. Configuration and with care about 3. HTTPS Configuration 4. Sharing Write Permission For more than one user to be able to write to the same directory it will be necessary to grant ...


2

If you prefer running apache2 than nginx, first you can stop nginx service. sudo service nginx stop Then start apache2 webserver service again. sudo service apache2 restart Mostly default web server is running on port 80.


2

If your getting an nginx error message at port 80, then nginx is already running there; Apache won't start. Stop nginx then Apache will work, or configure one of the servers to use a different port. The exact steps you should take depend on whether you want to retain nginx.


2

As I too was having this issue on some Ubuntu 12.04 servers I was maintaining, I decided to create a clone of Ondrej's PPA with the last known working Ubuntu 12.04 packages. https://launchpad.net/~nickmoline/+archive/ubuntu/php55 Switching to this PPA has allowed me to successfully install Apache and PHP again. this locks Apache to 2.4.16 instead of the ...


0

The screenshots are showing a server with modest RAM, but apparently OK as you aren't using swap space even on the 10 hour one, and it's usually swap that kills a computer's speed if it's a memory problem. I think you need to run & monitor top to see if it varies much & uses swap space when it is slow, also to see if there's a CPU hog. I use a ...


0

First to check your hardware. Run MemTest86 at least 24 hours to make sure your memory is not root cause. Due to sendmail-mta hangs, my experience is due to DNS issue (by gethostent) or YP/NIS issue (if you have installed nis). Try this command to see whether you have installed nis. dpkg -l nis If yes, try to remove it by apt-get remove nis if you ...


0

Well, in theory you should be ok with putting your .htpasswd file anywhere in the apache document root since apache default configuration for any file beginning with ".ht" should be this: <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> However, I tend to avoid that, and usually put my .htpasswd files somwhere in ...


0

Open a terminal and type: sudo gedit /etc/apache2/apache2.conf Find this: <Directory /var/www/> Change AllowOverride None to AllowOverride All Then run: sudo a2enmod rewrite


1

I lost hours to solve this problem. Just install php-mbstring, php7.0-mbstring and php-gettext. That's it. You can do that by running the following command: sudo apt-get install php-mbstring php7.0-mbstring php-gettext


0

run sudo apt-get install libapache2-mod-php7.0


0

I wouldn't be concerned about logging overhead or log file size. If the log file size grows out of hand you can logrotate(8) it and compress old logs in the process. Text files with many similar entries tend to be very well compressible. You could even set up your custom cron job to filter those entries out of the rotated log files.



Top 50 recent answers are included