Tag Info

New answers tagged

1

Found the answer and maybe it's useful to somebody else. The thing is that, even after uninstalling the mysql server in order to install it again and try it over, the system didn't allow me to create a password. So I did uninstall it using sudo apt-get remove mysql-server and after that sudo apt-get autoremove, but that wasn't enough. The error was still ...


0

If the Problem still occurs, enable the module by adding: extension=mcrypt.so to /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini


0

The solution copy from link If you have your own Ubuntu server running you may encounter the maximal file size upload limit in php scripts which is set to 2Mb as default. In order to change that we first have a look what the size actually is. In /var/www (standard www directory) create a file called info.php with the following content: Then browse to this ...


1

Open the terminal and type: dpkg --get-selections *php* This will list all the php packages that are currently installed on your system through apt-get.


2

Your best bet would be to follow this guide, Connecting to a MS SQL Server From Ubuntu


1

to see all ./configure options available run: configure --help to build an MySQL extension first install libmysqlclient-dev package and then add these options to ./configure invocation: --with-mysql=/usr --with-pdo-mysql=/usr That should be it. For shared .so extension do: --with-mysql=shared,/usr --with-pdo-mysql=shared,/usr For mysqlnd (however I ...


1

Run 'sudo apt-get update' command if sudo apt-get update is also not working then follow the below steps:- open '/etc/apt/source.list' file. check the word after 'http://security.ubuntu.com/ubuntu/' in the 'source.list' file, let the word is 'xyz' go to the address 'http://security.ubuntu.com/ubuntu/' then click on dists. now check whether 'xyz' is ...


0

According to Ubuntu manual: ldconfig creates, updates, and removes the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib). In your case, verify if /usr/lib64 ...


0

The basic mechanism is: the browser asks the web server for a web page. This is in fact the address of a program or script, most often written in PHP. the web server executes the PHP program. the PHP program accesses the data base server using SQL statements. the data base server returns data to the program. the program puts the data into an HTML page. the ...


0

First you need to remove all php5 files : sudo apt-get remove --purge 'dpkg -l | grep php | grep -w 5.5 | awk '{print $2}' | xargs' After that try to search for php 5.4. available resources : apt-cache policy php5 My result : php5: Installed: (none) Candidate: 5.5.12+dfsg-2+deb.sury.org~saucy+1 Version table: 5.5.12+dfsg-2+deb.sury.org~saucy+1 0 ...


0

I have faced a very similar issue. The way I solved it is to purge the MySQL packages in APT, then install anew. sudo apt-get purge mysql-server-5.5 mysql-common sudo apt-get install mysql-server Packages like mysql-common and mysql-client get installed as dependencies. The purge seems to work in my case, as I was testing several install configurations ...


0

If automysqlbackup can work with mysql-client-5.6 (In other words, if it's binary compatible with mysql-client-5.6). Is possible to use equivs to create dummy packages for mysql-client, mysql-server. Nothing to loose if it didn't work just uninstall them: sudo apt-get install equivs equivs-control mysql-client equivs-build mysql-client sudo dpkg -i ...


0

Quick and dirty solution could be a string in /etc/crontab to restart apache each hour, for example. */5 * * * * /usr/sbin/service apache2 restart This will restart apache each 5 minutes. But of course, we would like to know the reason it stops, right? There could be a lot of different reasons, as long as you have VPS. Your provider could just use some ...


0

Try, at this order: sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install mysql-workbench Worked just fine for me!


2

cd /media/mount/d mysqldump -u {user} -p {database} > {database}.sql and all you need to supply is the password for {user}.


0

I was trying myself too after posting the question here and I got it working through following the below steps. This work in mycase. You can try it too. Open Terminal In Ubuntu. Type mysql -u root -p ENTER_YOUR_SQL_PASSWORD Type > grant all privileges on DATABASE_NAME.* to USERNAME@IPADDRESS identified by 'PASSWORD'; Or Type > grant all privileges on ...


0

For CentOs to install cron type yum install cronie In your php script put the header section of $header above assigning $msg to intercept it as html content before it really assign $msg with HTML so it will be $to="some@example.com" $subject = 'Count User Login And Application'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: ...


1

You should just use the PHP mail function, which your script already tries to do. Look up the syntax for the mail function and you will see that there is an additional parameter $headers. The script actually constructs these headers but does not use them. The headers are necessary to tell your email client that what follows is HTML and not plain text. The ...


2

I run my own LAMP servers on Ubuntu connected to the Internet, so I always follow the same guidelines. Usually, I'll check the following : In Apache, remove the documentation or at least don't present it to trough the web server (by removing the link /etc/apache2/conf-enabled/apache2-doc.conf) In Apache, be sure that unnecessary modules are not loaded. ...


1

Here is what I generally do after a LAMP setup: (for development use, not production) Disable apache2 from starting automatically: sudo update-rc.d apache2 disable When you want to use, you may start it by: sudo service apache2 start Disable mysql from starting automatically: echo "manual" | sudo tee /etc/init/mysql.override When you want to use, ...


0

sudo service mysql stop sudo /opt/lampp/lampp restart It worked for me.


1

There's three entries there because you need one entry for each user@host combination. Examine host for each of the root user entries. The host column defines where that user can connect from and have the connection accepted. In this case, for the root user, the host entries are localhost, 127.0.0.1, and ::1. The last two are IPv4 and IPv6 entries for ...


0

Following the suggestion in this link we get the answer. Let's see some explanations. According to php documentation open_basedir: When a script tries to access the filesystem, for example using include, or fopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to access it. In order ...


0

See first link in @Litizia comment above for the post that helped me solve the problem. Specific changes to /etc/phpmyadmin/apache.conf that solved the problem for me are: under <IfModule mod_php.c> First: change php_value include_path . to: php_value include_path .:/usr/share/php:/usr/share/pear Second: Change php_admin_value ...


0

This might help, use the locate utility ➜ ~ locate debian.cnf /etc/texmf/texmf.d/00debian.cnf


0

Since we are a site dedicated to Ubuntu and you mention 14.04 I assume you are talking about Ubuntu 14.04. You can find file locations with locate. So ... $ locate debian.cnf /etc/mysql/debian.cnf edit: This requires you to have mysql installed (as seen by Christophers' answer)


0

If people are accessing phpmyadmin over the Internet, you should use SSL encryption for the web traffic. If not, add a couple lines to your htaccess file that only allows connection from the LAN. Something like the following Order Deny,Allow Deny from All Allow from 10.253.0.1/24


0

Securing phpMyAdmin with .htaccess is considered sufficient if you're just using Ubuntu in order to learn and get experience with LAMP servers. However, if you were working in a corporate environment, I would suggest setting up SSL Certifications with phpMyAdmin for that extra level of security.


1

Open the terminal and type: sudo apt-get purge mysql-client-core-5.6 sudo apt-get autoremove sudo apt-get autoclean sudo apt-get install mysql-client-core-5.5 sudo apt-get install mysql-server Both MySQL database core client and MySQL Server packages will be the same version 5.5. MySQL Client 5.5 and MySQL Server 5.5 are the current "best" versions of ...


0

I've stumbled upon the exact same problem, so I came across this post. For anyone who ends up here, this is my conclusion. After further searching the net, most people seem to conclude that lib-apache2-mod-auth-mysql is incompatible with Apache 2.4 (standard in Ubuntu 14.04) Moreover support for this module has stopped. Some suggest recompiling (version ...



Top 50 recent answers are included