Category Linux

Change website main directory to subdirectory

You will need to change the two instances of example.com to your domain, and the three instances of subdirectory to the folder where you want your site.

If laravel url is not working on server

if laravel url is working like index.php/user but not working in /user

If Cron not run automatically on server in laravel

phpmyadmin not found

Create a link in /var/www like this:

sudo ln -s /usr/share/phpmyadmin /var/www/

Note: since 14.04 you may want to use /var/www/html/ instead of /var/www/

If that’s not working for you, you need to include PHPMyAdmin inside apache configuration.

Modifying the PHP Configuration php.ini

Modifying the PHP Configuration

The php.ini file can be edited to change the settings and configuration of how PHP functions. This section gives a few common examples.

Sometimes a PHP application might need to allow for larger upload files such as uploading themes and plugins on a WordPress site. To allow larger uploads for your PHP application, edit the php.ini file with the following command (Change the path and file to match your Loaded Configuration File. This example shows the path for Apache on Ubuntu 14.04.):

  • sudo nano /etc/php5/apache2/php.ini

The default lines that control the file size upload are:

php.ini
...

Useful Linux command

change root user

edit file

copy and overwrite

move

make 777 dir permission