This is because PHP extension Mycrypt not installed on your computer. To install, run
Tell me if that fixed the problem.Code:sudo apt-get install php5-crypt sudo php5enmod mcrypt sudo service apache2 restart
This is because PHP extension Mycrypt not installed on your computer. To install, run
Tell me if that fixed the problem.Code:sudo apt-get install php5-crypt sudo php5enmod mcrypt sudo service apache2 restart
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Please find the result as follows:
Code:sherly@HOME:~/www/sherly.dev$ sudo apt-get install php5-crypt [sudo] password for sherly: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php5-crypt sherly@HOME:~/www/sherly.dev$ sudo php5enmod mcrypt WARNING: Module mcrypt ini file doesn't exist under /etc/php5/mods-available WARNING: Module mcrypt ini file doesn't exist under /etc/php5/mods-available sherly@HOME:~/www/sherly.dev$ sudo service apache2 restart * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [ OK ]
@sherly
When running commands, be careful. Read what it says. Your first command itself failed. Then stop and inventigate. Don't continue with further commands if first one failed.
When running a group of commands, don't run all at once, run one at a time, read what computers says, if it was success or failure.
See, server can't find the package with name php5-crypt.Code:sherly@HOME:~/www/sherly.dev$ sudo apt-get install php5-crypt [sudo] password for sherly: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php5-crypt
Actual name of the package is
So runCode:php5-mcrypt
I am not fixing first post, that is error on my part. Lets keep that error, so others follow this post know what to do when an error happens or something did not work. Read what computer said and try to understand. No 6th sense needed here.Code:sudo apt-get install php5-mcrypt
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Code:sudo apt-get install php5-mcrypt sudo php5enmod mcrypt sudo service apache2 restartCode:sherly@HOME:~$ sudo apt-get install php5-mcrypt [sudo] password for sherly: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libmcrypt4 Suggested packages: libmcrypt-dev mcrypt The following NEW packages will be installed: libmcrypt4 php5-mcrypt 0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded. Need to get 74.7 kB of archives. After this operation, 300 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libmcrypt4 i386 2.5.8-3.1ubuntu1 [61.1 kB] Get:2 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-mcrypt i386 5.5.19+dfsg-1+deb.sury.org~trusty+1 [13.7 kB] Fetched 74.7 kB in 1s (57.1 kB/s) Selecting previously unselected package libmcrypt4. (Reading database ... 451236 files and directories currently installed.) Preparing to unpack .../libmcrypt4_2.5.8-3.1ubuntu1_i386.deb ... Unpacking libmcrypt4 (2.5.8-3.1ubuntu1) ... Selecting previously unselected package php5-mcrypt. Preparing to unpack .../php5-mcrypt_5.5.19+dfsg-1+deb.sury.org~trusty+1_i386.deb ... Unpacking php5-mcrypt (5.5.19+dfsg-1+deb.sury.org~trusty+1) ... Processing triggers for libapache2-mod-php5 (5.5.19+dfsg-1+deb.sury.org~trusty+1) ... Setting up libmcrypt4 (2.5.8-3.1ubuntu1) ... Setting up php5-mcrypt (5.5.19+dfsg-1+deb.sury.org~trusty+1) ... Creating config file /etc/php5/mods-available/mcrypt.ini with new version php5_invoke: Enable module mcrypt for cli SAPI php5_invoke: Enable module mcrypt for apache2 SAPI Processing triggers for libc-bin (2.19-0ubuntu6.4) ... Processing triggers for libapache2-mod-php5 (5.5.19+dfsg-1+deb.sury.org~trusty+1) ... sherly@HOME:~$ sudo php5enmod mcrypt sherly@HOME:~$ sudo service apache2 restart * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [ OK ]
Last edited by sherlyk; 12-15-2014 at 07:21 AM.
Run
Paste the result here. So we can see what it will be like when built-in web server working properly.Code:cd ~/www/yourname.dev php artisan serve
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Result
Code:sherly@HOME:~$ cd ~/www/sherly.dev/ sherly@HOME:~/www/sherly.dev$ php artisan serve Laravel development server started on http://localhost:8000 [Mon Dec 15 11:56:09 2014] 127.0.0.1:41676 [200]: /favicon.ico [Mon Dec 15 11:56:09 2014] 127.0.0.1:41677 [200]: /favicon.ico
Bookmarks