Posts

Showing posts with the label CentOS

app/storage/meta/services.json: failed to open stream: Permission denied - Laravel 4

If you are getting this error on your laravel 4 installation so put the steps as i mention below Error is like this in laravel 4 ErrorException file_put_contents(/var/www/vhosts/folder/app/storage/meta/services.json): failed to open stream: Permission denied  That means permission is not granted to write for meta folder so you need to run these command on your server from your root folder Step 1: Come to your root folder var/www/vhosts/yousite_folder/ Step 2: Run this command first find app/storage -type d -exec chmod 777 {} \; Step 3: Run this command now find app/storage -type f -exec chmod 777 {} \; These command will chmod all directories and files in app/storage to 777.  Done!! Now you can refresh your page and working fine. If this post help you please submit a comment in post to inspire me :)

chown: invalid user: `www:www'" - Error in CentOS

chown: invalid user: `www:www'"  - Error in CentOS When i grant ownership of the directory to the user, instead of just keeping it on the root system i got this error chown: invalid user: `www:www'" How to solve this. When you use this command "sudo chown -R www:www /var/www/example.com/public_html". ? You got an error here are the solution that how can you handle this Just replace the www:www to apache:apache Example: sudo chown -R apache:apache /var/www/example.com/public_html

wget: command not found

Error can like like this wget: command not found Or -bash: wget: command not found This error occurs if wget  is not installed on your server. Might be you have a VPS server. That means  you don't have wget installed Try this command yum install wget Now try wget command to download the package from server. Hope this will work now. If this post help you so do not forget to comment for this post

How to login MySql in CentOS Or Linux?

How to login MySql in CentOS Or Linux? Here i will show you that how can you use MySql on CentOS or Linux Os Open Your terminal and login with your root login now run this command to login in mysql mysql -u root -p It will ask you for password Enter password: Enter your password here which you have set for mysql It will show show you a successfull message OR insert mysql as selected tab mysql> Two points you must keep in your mind: 1) All MySQL commands end with a semicolon; if does not end with a semicolon, the command will not execute. 2) MySQL commands are usually written in uppercase and databases, tables, usernames, or text are in lowercase to make them easier to distinguish. MySQL command line is not case sensitive. To show all database: SHOW DATABASES; Use exit command to come out from the mysql> promt mysql> exit it will show msg bye