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.
Category Linux
if laravel url is working like index.php/user but not working in /user
1 2 |
// run this command sudo a2enmod rewrite |
1 2 |
// run this command * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1 |
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
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.):
1 |
- sudo nano /etc/php5/apache2/php.ini
1 |
The default lines that control the file size upload are:
change root user
1 |
sudo su |
edit file
1 |
sudo nano /filepath |
copy and overwrite
1 |
yes | cp -rf /source/* /destination |
move
1 |
mv /source/* /destination |
make 777 dir permission
1 |
chmod -R 777 /www/store |